A 12. Assuming the proper privileges, which two of the following would allow access to data in a table T1 using the name A1?
(Select 2)
A. CREATE ALIAS a1 FOR t1
B. CREATE TABLE a1 LIKE t1
C. CREATE INDEX a1 ON t1 (col1)
D. CREATE VIEW a1 AS SELECT * FROM t1
E. CREATE TRIGGER trig1 AFTER INSERT ON t1 FOR EACH ROW MODE DB2SQL INSERT INTO a1
C 13. Which of the following will grant just DML operations on table T.T4 to all users?
A. GRANT ALL PRIVILEGES ON t.t4 TO PUBLIC
B. GRANT ALL PRIVILEGES ON t.t4 TO ALL USERS
C. GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE t.t4 to PUBLIC
D. GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE t.t4 TO ALL USERS
C 14. Which type of key is defined on the dependent table to implement referential constraints?
A. Unique key
B. Primary key
C. Foreign key
D. Composite key
D 15. Given a user defined function, U.UDF1, that takes an input parameter of type INTEGER, and USER6 running the following SQL statement:
SELECT w.udf1 (col6) FROM t.tab1 WHERE col4 = 'ABC'
Which of the following statement(s) would allow USER6 to execute the statement?
A. GRANT ALL PRIVILEGES ON TABLE t.tab1 TO user6
B. GRANT SELECT ON TABLE t.tab1 TO user6
GRANT USE ON FUNCTION u.udf1 (INT) TO user6
C. GRANT SELECT ON TABLE t.tab1 TO user6
GRANT REFERENCES ON FUNCTION u.udf1 (INT) TO user6
D. GRANT ALL PRIVILEGES ON TABLE t.tab1 TO user6
GRANT EXECUTE ON FUNCTION u.udf1 (INT) TO user6
C 16. Given these columns from the DEPARTMENT table:
发表评论