移动端

  • 题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

计算机考试 | IBM认证考试

模式切换

0 0 0
我的错题 我的收藏 学习笔记

章节目录

单选题 A DBA has been asked to create a table which will contain a substantial amount of detailed sales information for each calendar month and maintain it to contain only the last 12 months. Which of the following methods will facilitate the online removal of the oldest month’s data?()

A

Create an MQT that selects the oldest month of data with the REFRESH IMMEDIATE option.

B

Create 12 separate tables, create a view based on all 12, drop the table with the oldest month's data then drop and re- create the view.

C

Create a range partitioned table, partitioned by month, and use the ALTER TABLE statement to detach the oldest month and attach storage for new data.

D

Create a single table, extract the data to be retained using UNLOAD with a SELECT statement, drop and re-create the table then load only the data to be retained.

单选题 What type of constraint is used to ensure that each row inserted into the EMPLOYEE table with a value in the WORKDEPT column has a row with a corresponding value in the DEPTNO column of the DEPARTMENT table?()

A

A check constraint on the EMPLOYEE table

B

A unique constraint on the EMPLOYEE table WORKDEPT column

C

A foreign key reference from the DEPARTMENT tables DEPTNO column to the WORKDEPT column of the EMPLOYEE table

D

A foreign key reference from the EMPLOYEE tables WORKDEPT column to the DEPTNO column of the DEPARTMENT table

单选题 Which of the following statements is used to prevent user TOM from adding and deleting data in table TAB1?()

A

REVOKE ADD, DELETE FROM USER tom ON TABLE tab1

B

REVOKE ADD, DELETE ON TABLE tab1 FROM USER tom

C

REVOKE INSERT, DELETE FROM USER tom ON TABLE tab1

D

REVOKE INSERT, DELETE ON TABLE tab1 FROM USER tom

单选题 Which of the following resources can be explicitly locked?()

A

Row

B

Page

C

Table

D

Column

单选题 A table was created using the following DDL: CREATE TABLE employee (id SMALLINT NOT NULL, name VARCHAR(9), dept SMALLINT CHECK (dept BETWEEN 10 AND 100), job CHAR(10) CHECK (job IN ('Sales','Mgr','Clerk')), hiredate DATE, salary DECIMAL(7,2), comm DECIMAL(7,2), PRIMARY KEY (id), CONSTRAINT yearsal CHECK (YEAR(hiredate) > 2004 OR salary > 80500) ); Which of the following INSERT statements will fail?()

A

INSERT INTO employee VALUES (2, 'Smith', 80, 'Mgr', '09/03/2006', 80000, NULL)

B

INSERT INTO employee VALUES (4, 'Smith', 86, 'Mgr', '07/14/2003', 90000, NULL)

C

INSERT INTO employee VALUES (1, 'Smith', 55, 'Sales', '07/14/2003', NULL, NULL)

D

INSERT INTO employee VALUES (3, 'Smith', 33, 'Analyst', '11/26/2006', 90000, NULL)

单选题 Which of the following is true of an index used to support a UNIQUE constraint?()

A

It must have the UNIQUE attribute.

B

It cannot be created explicitly by the user.

C

It must have the UNIQUE and CLUSTER attributes.

D

It must have the UNIQUE WHERE NOT NULL attribute.

单选题 A trigger can be created on which of the following objects?()

A

View

B

Catalog Table

C

Stored Procedure

D

Global Temporary Table

1 2 3 4 5 下一页 尾页 /

到第