(C1 CHAR (3)
CONSTRAINT c1
CHECK (c1 IN ('A01','B01','C01'))
)
DB2 verifies that the table checks constraint is met during which of the following actions?
A. Reorganizing the table.
B. Updating any row in the table.
C. Adding an insert trigger to the table.
D. Creating a unique index for the table.
B 4. Given the following:
A table contains a list of all seats on an airplane. A seat consists of a seat number and whether or not it is assigned. An airline agent lists all the unassigned seats on the plane. When the agent refreshes the list from the table, the list should not change.
Which of the following isolation levels should be used for this application?
A. Read Stability
B. Repeatable Read
C. Cursor Stability
D. Uncommitted Read
A 5. Given the following information:
CREATE TABLE tab1 (c1 CHAR (4), c2 INTEGER)
INSERT INTO tab1 VALUES ('123', 345)
UPDATE tab1 SET (c1, c2) = (NULL, 0)
What will be the result of the following statement if issued in the Command Line Processor?
SELECT * FROM tab1;
A. C1 C2 ---- ------------ 0 1 record(s) selected.
B. C1 C2 ---- ----------- 123 345 1 record(s) selected.
C. C1 C2 ---- ----------- NULL 0 1 record(s) selected.
D. C1 C2 ---- ----------- 123 0 1 record(s) selected.
A 6. Given table EMPLOYEE with columns EMPNO and SALARY, and table JOB with columns ID and TITLE, what is the effect of the following statement?
发表评论