位置:首页 > 题库频道 > 其它分类 > 计算机其它 > 专业技术初级资格程序员基础知识DB2

What is the primary purpose for using the INCLUDE clause with a CREATE UNIQUE INDEXstatement、

发布时间:2024-07-09

A.To override the limit on index key columns.

B.To further enforce the uniqueness of index values.

C.To combine two or more indexes to create a single unique index.

D.To improve performance of some queries by allowing index-only access.

试卷相关题目

  • 1Which event will NOT cause a trigger to be fired、

    A.Execution of an INSERT statement.

    B.Execution of LOAD REPLACE operation.

    C.Execution of an INSERT operation of a MERGE statement.

    D.Execution of an UPDATE operation of a MERGE statement.

    开始考试点击查看答案
  • 2Which type of constraint can be used to tell the DB2 Optimizer that a parent-child relationship exists between two tables, but that the relationship is not enforced、

    A.Check

    B.Unique

    C.Referential

    D.Informational

    开始考试点击查看答案
  • 3The WITH CHECK OPTION clause of the CREATE VIEW statement allows you to do which of thefollowing、

    A.Define a view on one or more tables or views.

    B.Revalidate all invalid objects that are referenced on a view's fullselect.

    C.Ensure that any inserted or updated rows conform to the definition of the view.

    D.Define a view that only consists of columns that have check constraints defined.

    开始考试点击查看答案
  • 4Which database object provides an alternative way of describing data that exists in one or more base tables、

    A.Alias

    B.View

    C.Index

    D.Sequence

    开始考试点击查看答案
  • 5Which statement regarding referential integrity constraints is true、

    A.Multiple primary keys can be defined for a table.

    B.A foreign key can reference multiple primary keys.

    C.A primary key can be referenced by only one foreign key.

    D.Primary keys and foreign keys are used to define relationships.

    开始考试点击查看答案
  • 6What are INSTEAD OF triggers used for、

    A.To update data in other tables.

    B.To perform insert, update, and delete operations against complex views.

    C.To check or modify values before they are actually stored in a database.

    D.To run non-database operations that are coded in user-defined functions.

    开始考试点击查看答案
  • 7User USER1 wants to store part numbers and part descriptions in a table named PARTS; userUSER1 also wants to ensure that any comparisons of part descriptions that are made will be done so in binary, regardless of the database collating sequence used. Which statement should user USER1 execute to create the desired table、

    A.CREATE TABLE parts (part_no INTEGER, desc CLOB))

    B.CREATE TABLE parts (part_no INTEGER, desc VARCHAR(200))

    C.CREATE TABLE parts (part_no INTEGER, desc CLOB FOR BIT DATA))

    D.CREATE TABLE parts (part_no INTEGER, desc VARCHAR(200) FOR BIT DATA)

    开始考试点击查看答案
  • 8What mechanism is typically used to automatically update other tables, generate or transform values for inserted or updated rows, and perform tasks such as issuing alerts、

    A.Trigger

    B.Procedure

    C.Table function

    D.Scalar function

    开始考试点击查看答案
  • 9Which data type should be used to store data in a column that represents money and accurately returns a two position scale、

    A.BIGINT

    B.BINARY

    C.DOUBLE

    D.DECIMAL

    开始考试点击查看答案
  • 10User USER1 wants to define a required relationship between two tables named TAB1 and TAB2 in such a way that whenever a record is deleted from table TAB1, any related records are deleted from table TAB2. What must user USER1 do to accomplish this、

    A.1) Create a primary key on table TAB1; 2) Create a foreign key on table TAB2 that references the primary key on table TAB1 and adheres to the ON DELETE CASCADE rule.

    B.1) Create a primary key on table TAB2; 2) Create a foreign key on table TAB1 that references the primary key on table TAB2 and adheres to the ON DELETE CASCADE rule.

    C.1) Create a primary key on table TAB1; 2) Create a foreign key on table TAB2 that references the primary key on table TAB1 and adheres to the ON DELETE RESTRICT rule.

    D.1) Create a primary key on table TAB2; 2) Create a foreign key on table TAB1 that references the primary key on table TAB2 and adheres to the ON DELETE RESTRICT rul

    开始考试点击查看答案
返回顶部