A. SELECT * FROM staff ORDER BY job
B. SELECT job, name FROM staff GROUP BY name, job
C. SELECT * FROM staff GROUP BY name, job, id, dept, years, salary, comm
D. SELECT * FROM staff ORDER BY name, job, id, dept, years, salary, comm
A 34. Which of the following SQL statements can remove all rows from a table named COUNTRY?
A. DELETE FROM country
B. DELETE TABLE country
C. DELETE * FROM country
D. DELETE ALL FROM country
D 35. USER3 has created table TAB1 and has no additional authorities.
Which of the following statements is USER3 authorized to execute?
A. GRANT LOAD ON TABLE tab1 TO user8
B. GRANT CONTROL ON TABLE tab1 TO user8
C. GRANT OWNERSHIP ON TABLE tab1 TO user8
D. GRANT ALL PRIVILEGES ON TABLE tab1 TO user8
AC 36. Given the following table definitions:
CREATE TABLE employee
(empid INT NOT NULL PRIMARY KEY,
emp_fname CHAR(30),
emp_lname CHAR(30)
)
CREATE TABLE payroll
(empid INTEGER,
weeknumber INTEGER,
paycheck DECIMAL(6,2),
CONSTRAINT fkconst FOREIGN KEY (empid)
REFERENCES employee (empid) ON DELETE SET NULL,
CONSTRAINT chk1
CHECK (paycheck>;0 AND weeknumber BETWEEN 1 and 52))
The appropriate indexes exist to support the tables created with the previous CREATE statements. Which two of the following operations can cause the enforcement of a constraint defined on PAYROLL?
(Select 2)
A. Update of a row in PAYROLL
B. Deletion of a row in PAYROLL
C. Deletion of a row in EMPLOYEE
D. Addition of a new column to PAYROLL
会员注册
会员登录
个人空间