移动端

  • 题王微信公众号

    题王微信公众号

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

计算机考试 | IBM认证考试

模式切换

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

章节目录

单选题 Application A is designed to execute the following SQL statements within a single Unit of Work (UOW). UPDATE employee SET salary = salary * 1.1 WHERE empno='000010' UPDATE department SET deptname = 'NEW dept' WHERE deptno='A00'Application B is designed to execute the following SQL statements within a single Unit of Work (UOW). UPDATE department SET deptname = 'OLD DEPT' WHERE deptno='A00' UPDATE employee SET salary = salary * 0.5 WHERE empno='000010' Application A and application B execute their first SQL statement at the same time. When application A and application B try to execute their second SQL statement, a deadlock occurs. What will happen?()

A

The database manager will rollback the transaction in both applications.

B

The database manager will rollback the transaction in one of the two applications.

C

Application B will successfully update the EMPLOYEE and DEPARTMENT tables; Application A will be placed in a lock wait state.

D

Application A will successfully update the EMPLOYEE and DEPARTMENT tables; Application B will terminate when the lock timeout value is reached.

单选题 Which of the following supports the XML data type?()

A

A unique index

B

A composite index

C

A check constraint

D

A generated column

单选题 Given that tables T1 and T2 contain the following rows: Table T1: C1 C2 5 4 5 2 5 5 Table T2: C1 C2 5 1 5 2 5 3 Which of the following queries will return only those rows that exist in T1 and not in T2?()

A

SELECT * FROM T1 MINUS SELECT * FROM T2

B

SELECT * FROM T1 EXCEPT SELECT * FROM T2

C

SELECT * FROM T2 UNION EXCEPT SELECT * FROM T1

D

SELECT * FROM T1 NOT EXISTS SELECT * FROM T2

单选题 To which of the following resources can a lock be applied?()

A

Row

B

Alias

C

Bitmap

D

Column

单选题 Which of the following statements eliminates all but one of each set of duplicate rows in the DEPT column in the STAFF table?()

A

SELECT UNIQUE dept FROM staff

B

SELECT DISTINCT dept FROM staff

C

SELECT (dept) UNIQUE FROM staff

D

SELECT (dept) DISTINCT FROM staff

单选题 Which of the following scenarios will ensure that the value of the NEXT_STEPNO column in a given row of table TABLEX exists as a value of column STEPNO (usually in another row) in the same table?()

A

Define a UNIQUE constraint on the columns NEXT_STEPNO and STEPNO.

B

Define a CHECK constraint on the NEXT_STEPNO column (NEXT_STEPNO = STEPNO).

C

Define column STEPNO as the primary key of TABLEX and column NEXT_STEPNO as a foreign key referencing column STEPNO of the same table.

D

Define column NEXT_STEPNO as the primary key of TABLEX and column STEPNO as a foreign key referencing column NEXT_STEPNO in the same table.

单选题 A DRDA host database resides on a z/OS or an i5/OS system and listens on port 446. The TCP/IP address for this system is 192.168.10.1 and the TCP/IP host name is myhost. Which of the following commands is required to update the local node directory so that a DB2 client can access this DRDA database?()

A

CATALOG TCPIP NODE myhost REMOTE db2srv SERVER 446

B

CATALOG TCPIP NODE mydb2srv REMOTE myhost SERVER 446

C

CATALOG TCPIP NODE myhost REMOTE db2srv SERVER 192.168.10.1

D

CATALOG TCPIP NODE mydb2srv REMOTE myhost SERVER 192.168.10.1

首页 上一页 1 2 3 4 5 下一页 尾页 /

到第