D. GRANT EXECUTE ON FUNCTION gen.fn1 (INT, CHAR) RETURNS CHAR TO usera
C 9. An administrator issues:
GRANT ALL PRIVILEGES ON TABLE appl.tab1 TO user1 WITH GRANT OPTION
Which of the following statements is USER1 authorized to execute?
A. GRANT DROP ON TABLE appl.tab1 TO user8
B. GRANT OWNER ON TABLE appl.tab1 TO user8
C. GRANT INSERT ON TABLE appl.tab1 TO user8
D. GRANT CONTROL ON TABLE appl.tab1 TO user8
C 10. Given the following table definition:
STAFF
Id INTEGER
Name CHAR(20)
Dept INTEGER
Job CHAR(20)
Years INTEGER
Salary DECINAL(10,2)
Comm. DECINAL(10,2)
Which of the following statements will return all of the records by job with the salaries in descending order?
A. SELECT*FROM staff ORDER BY salary DESC.job
B. SELECT*FROM staff GROUP BY salary DESC.job
C. SELECT*FROM staff ORDER BY job。salary DESC
D. SELECT*FROM staff GROUP BY job.salary DESC
B 11. Given tables that are defined in the following way
Table1
Col1 INT
Col2 CHAR (30)
Table2
Col1 INT
Col2 CHAR (30)
Which of the following statements will insert all the rows in TABLE2 into TABLE1?
A. INSERT INTO table1(table2.col1,table2.col2)
B. INSERT INTO table1SELECT col1, col2 FROM table2
C. INSERT INTO table1 VALUES(SELECT col1,col2FROM table2)
D. INSERT INTO table1 (col1, col2) VALUES (SELECT col1, col2 FROM table2)
D 12. Given the following two tables
TAB1 TAB2
C1 C2 CX CY
---- ----- ------ -----
会员注册
会员登录
个人空间