700考试真题-1
CE 1. Which two of the following results from a successful ROLLBACK statement?
(Select 2)
A. The current unit of work is restarted.
B. Existing database connections are released.
C. Locks held by the current unit of work are released.
D. Tables in LOAD PENDING for the current unit of work are released.
E. Changes made by the current unit of work since the last COMMIT points are undone.
?CD 2. Which two of the following are enforced by the database to restrict specific values from being inserted into a column in a particular table?
A. Index.
B. Stored procedure.
C. Referential constraint.
D. A view with check option.
E. External scalar function.
C 3. Given the table T1 created by
CREATE TABLE t1
(Id INTEGER NOT NULL GENERATES ALWAYS AS IDENTITY.
C1 CHAR (10) NOT NULL.
C2 CHAR (10)
Which of the following INSERT statements will succeed?
A. INSERT INTO t1 VALUES(‘abc’, NULL)
B. INSERT INTO t1 VALUES(1, ‘abc’, NULL)
C. INSERT INTO t1 (c1, c2) VALUES (‘abc’, NULL)
D. INSERT INTO t1 (c1, c2) VALUES (NULL, ‘def’)
A 4. Given the following DDL statements,
CREATE TABLE tab1 (a INT, b INT, c INT)
CREATE VIEW v1 AS SELECT a, b, c FROM tab1
WHERE a>;250 WITH CHECK OPTION
Which of the following INSERT statements will fail?
A. INSERT INTO v1 VALUES (200, 2, 3)
B. INSERT INTO v1 VALUES (300, 2, 3)
C. INSERT INTO tab1 VALUES (350, 2, 3)
D. INSERT INTO tab1 VALUES (250, 2, 3)
C 5. Given the following column requirement:
Col1 Numeric Identifier –From 1 to 1000000
Col2 Job Code-Variable 1 to 2 characters long
Col3 Job Description –Variable, 1 to 100 characters long
Col4 Job Length –Length of Job in seconds
Which of the following will minimize the disk space allocated to store the records if Job Description has an average length of 65?
A. CREATE TABLE tab1(col1 INT,col2 CHAR(2),col3 CHAR(100),col4 INT)
B. CREATE TABLE tab1(col1 INT ,col2 VARCHAR(2),col3 CHAR(100),col4 INT)
C. CREATE TABLE tab1 (col1 INT, col2 CHAR (2), col3 VARCHAR (100), col4 INT)
D. CREATE TABLE tab1 (col1 INT, col2 VARCHAR (2).col3 VARCHAR (100).col4 INT)
A 6. Which of the following DB2 data types is used to store 50 MB of binary data as a single value?
A. BLOB(二进制大对象)
B. CLOB(字符型大对象)
C. DBCLOB
D. GRAPHIC
B 7. Given the following users and groups with no privileges on table t1:
GroupA GroupB
---------- ---------
user1 user4
user2 user5
user3
Which of the following commands gives all users in the above groups the ability to create a view on table t1?
发表评论