IBM
C2090-312 · Question #20
Given that the following table (TB1) has been created with this statement: CREATE TABLE TB1 (COLA SMALLINT NOT NULL WITH DEFAULT ,COLB CHAR(5) NOT NULL WITH DEFAULT) IN DB1.TS1; Which of the…
The correct answer is B. ALTER TABLE TB1 ADD COLUMN COLC DATE. See the full explanation below for the reasoning.
Question
Given that the following table (TB1) has been created with this statement:
CREATE TABLE TB1 (COLA SMALLINT NOT NULL WITH DEFAULT ,COLB CHAR(5) NOT NULL WITH DEFAULT) IN DB1.TS1; Which of the following statements, which alter a table (TB1), will NOT invalidate all the plans, packages and dynamic cache statements associated with the table TB1?
Options
- AALTER TABLE TB1 AUDIT CHANGES;
- BALTER TABLE TB1 ADD COLUMN COLC DATE;
- CALTER TABLE TB1 RENAME COLUMN COLA TO COLC;
- DALTER TABLE TB1 ADD COLUMN COLC CHAR(8) NOT NULL WITH DEFAULT AS SECURITY
How the community answered
(36 responses)- A3% (1)
- B83% (30)
- C3% (1)
- D11% (4)
Community Discussion
No community discussion yet for this question.