databases Online Quiz - 199
|Description: databases Online Quiz - 199|
|Number of Questions: 20|
|Created by: Aliensbrain Bot|
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?
Given the following scenario: Table TABLE1 needs to hold specific numeric values up to 9999999.999 in column COL1. Once TABLE1 is populated, arithmetic operations will be performed on data stored in col-umn COL1. Which of the following would be the most appropriate DB2 data type to use for column COL1?
How do you find the total number of rows in a table ?
Given the following statement: CREATE TABLE t1 col1 SMALLINT NOT NULL PRIMARY KEY, col2 VARCHAR(200) NOT NULL WITH DEFAULT NONE, col3 DECIMAL(5,2) CHECK (col3 >= 100.00), col4 DATE NOT NULL WITH DEFAULT) Which of the following definitions will cause the CREATE TABLE statement to fail?
Which authority or privilege is granted by the DB2 Database Manager configuration file?
Which of the following isolation levels will lock all rows scanned to build a result data set?
_____ is dropped when the table or tablespace is dropped
The maximum number of tables that can be joined is _____________
When you open a cursor, DB2 will always get all rows that meet the selection criteria and create a result set?
Given the following table: TEMP_DATA TEMP DATE _____________ 45 12/25/2006 51 12/26/2006 67 12/27/2006 72 12/28/2006 34 12/29/2006 42 12/30/2006 And the following SQL statement: TE FUNCTION degf_to_c (temp INTEGER) RETURNS INTEGER LANGUAGE SQL CONTAINS SQL NO EXTERNAL ACTION DETERMINISTIC BEGIN ATOMIC DECLARE newtemp INTEGER; SET newtemp = temp - 32; SET newtemp = newtemp * 5; RETURN newtemp / 9; END Which two of the following SQL statements illustrate the proper way to invoke the calar function DEGF_TO_C?
Which wildcard character is used for a single character replacement