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 data type should be specified for the column that will be used for storing the image?
An application needs to store a 5 MB JPEG image in a DB2 table. Which data type should be
specified for the column that will be used for storing the image?
Which of the following is a characteristic of a schema?
Which of the following is a characteristic of a schema?
Which of the following scenarios will ensure that the value of the NEXT_STEPNO column in a given row of table
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?
Which of the following database objects can be used to raise an error if a table is updated?
Which of the following database objects can be used to raise an error if a table is updated?
WHERE col4 > 1000 ; When will DB2 access the data from table T1 for view V1?
A view is created with the following statement:
CREATE VIEW v1
AS SELECT col1, col2, col3
FROM t1
WHERE col4 > 1000 ;
When will DB2 access the data from table T1 for view V1?
Which of the following constraint types can be used to ensure the value of an INTEGER column references only p
Which of the following constraint types can be used to ensure the value of an INTEGER column
references only positive values?
Which of the following CANNOT be used to restrict specific values from being inserted into a column in a parti
Which of the following CANNOT be used to restrict specific values from being inserted into a
column in a particular table?
What type of constraint is used to ensure that each row inserted into the EMPLOYEE table with a value in the W
What type of constraint is used to ensure that each row inserted into the EMPLOYEE table with a
value in the WORKDEPT column has a row with a corresponding value in the DEPTNO column of
the DEPARTMENT table?
Which two of the following statements are true?
Given the following table definition:
EMPLOYEES
———————-
EMPID INTEGER
NAME CHAR(20)
SALARY DECIMAL(10,2)
If the following SQL statement is executed:
CREATE UNIQUE INDEX empid_ui ON employees (empid)
Which two of the following statements are true?