Which of the following DB2 data types can NOT be used to create an identity column?
Which of the following DB2 data types can NOT be used to create an identity column?
Which of the following strings can NOT be inserted into an XML column using XMLPARSE()?
Which of the following strings can NOT be inserted into an XML column using XMLPARSE()?
Which two of the following are optional and do not have to be specified when creating a table?
Which two of the following are optional and do not have to be specified when creating a table?
Which of the following can NOT be used to restrict specific values from being inserted into a column in a part
Which of the following can NOT be used to restrict specific values from being inserted into a
column in a particular table?
Which two of the following will NOT occur when the statement is executed?
Given the following CREATE TABLE statement:
CREATE TABLE table2 LIKE table1
Which two of the following will NOT occur when the statement is executed?
Which of the following statements is true?
If the following SQL statements are executed:
CREATE TABLE tab1 (id SMALLINT NOT NULL PRIMARY KEY,
name VARCHAR(25));
CREATE TABLE tab2 (empid SMALLINT,
weekno SMALLINT,
payamt DECIMAL(6,2),
CONSTRAINT const1 FOREIGN KEY (empid)
REFERENCES taba(id) ON UPDATE NO ACTION);
Which of the following statements is true?
Which of the following is used to indicate a column will not accept NULL values and can be referenced in anoth
Which of the following is used to indicate a column will not accept NULL values and can be
referenced in another table’s foreign key specification?
Which of the following statements will successfully insert a record into table TAB1?
If table TAB1 is created using the following statement:
CREATE TABLE tab1 (col1 INTEGER NOT NULL,
col2 CHAR(5),
CONSTRAINT cst1 CHECK (col1 in (1, 2, 3)))
Which of the following statements will successfully insert a record into table TAB1?
What is the total number of rows that will be deleted?
If the following SQL statements are executed:
CREATE TABLE make (makeid SMALLINT NOT NULL PRIMARY KEY,
make VARCHAR(25));
CREATE TABLE model (modelid SMALLINT,
model VARCHAR(25),
makeid SMALLINT,
CONSTRAINT const1 FOREIGN KEY (makeid)
REFERENCES make(makeid) ON DELETE RESTRICT);
And each table created is populated as follows:
MAKE
MAKEID MAKE
—— ——–
1 Ford
2 Chevrolet
3 Toyota
MODEL
MODELID MODEL MAKEID
——- ——- ——–
1 Mustang 1
2 Escort 1
3 Malibu 2
4 Camry 3
If the following SQL statement is executed:
DELETE FROM make WHERE makeid = 1
What is the total number of rows that will be deleted?
Which of the following is NOT a characteristic of a unique index?
Which of the following is NOT a characteristic of a unique index?