Which of the following will be a consequence of defining the column IDCOL2 in TABLE2 as a foreign key referenc
Which of the following will be a consequence of defining the column IDCOL2 in TABLE2 as a
foreign key referencing the primary key (IDCOL1) of TABLE1?
What type of constraint can be used to ensure that, in any given row in a table, the value of one column never
What type of constraint can be used to ensure that, in any given row in a table, the value of one
column never exceeds the value of another column?
Which of the following are all valid DB2 data types?
Which of the following are all valid DB2 data types?
What is the effect of the CHECK OPTION clause?
A view is created with the following statement:
CREATE VIEW v1
AS SELECT col1, col2, col3, col4
FROM t1
WHERE col4 > 1000
WITH CHECK OPTION
What is the effect of the CHECK OPTION clause?
Which of the following is true of an index used to support a UNIQUE constraint?
Which of the following is true of an index used to support a UNIQUE constraint?
Which of the following methods will facilitate the online removal of the oldest month’s data?
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?
what are the characteristics of COL1?
If a unique constraint is defined on column COL1 of table TAB1, what are the characteristics of
COL1?
What is the maximum size that can be specified when creating an XML column in a DB2 table?
What is the maximum size that can be specified when creating an XML column in a DB2 table?
Which of the following strings can be inserted into an XML column using XMLPARSE?
Which of the following strings can be inserted into an XML column using XMLPARSE?
which trigger will be activated first?
The following triggers were defined for table TAB1 in the order shown:
CREATE TRIGGER trig_a AFTER UPDATE ON tab1
FOR EACH ROW
UPDATE sale_tab SET sale_date = CURRENT DATE;
CREATE TRIGGER trig_b AFTER UPDATE ON tab1
FOR EACH STATEMENT
UPDATE invoice_tab SET invoice_date = CURRENT DATE;
CREATE TRIGGER trig_c AFTER UPDATE ON tab1
FOR EACH ROW
UPDATE shipping_tab SET ship_date = CURRENT DATE;
CREATE TRIGGER trig_d AFTER UPDATE ON tab1
FOR EACH STATEMENT
UPDATE billing_tab SET billing_date = CURRENT DATE;
If an event occurs that causes all of them to activate, which trigger will be activated first?