- Write the SQL statement(s) needed to grant BOB the access to some columns of the Authors table.
GRANT
SELECT
ON AUTHORS TO BOB;
is this correct?
- Write the SQL statement(s) needed to grant ORDERUSER access to some rows of the Customers table.
this is my answer is this correct? Q2
GRANT
SELECT
ON CUSTOMERS(SomeRows1,SomeRows2)TO ORDERUSER
- Suppose SAM now wants GEORGE to act as his security administrator. Write the SQL statement(s) needed to give GEORGE the necessary privileges.
is this correct?
GRANT SELECT TO [ WITH GRANT OPTION ]
[ FROM ]
- Suppose that GEORGE executed SQL statements to grant BOB access to the database. What happens to BOB if SAM executes the SQL statement below? Explain your answer.
REVOKE SELECT
ON SALESREPS
FROM GEORGE;
is this correct?
REVOKE SELECT ON SALESREPS FROM GEORGE CASCADE;
GRANT assistant_role TO BOB WITH ADMIN OPTION;
REVOKE WITH ADMIN OPTION FOR assistant_role FROM BOB CASCADE;
- Suppose that your DBMS contains a user identified with PHIL as his/her user ID. Write a SQL statement that removes PHIL's read privileges to the ORDERS table.
is this correct?
GRANT SELECT
ON ORDERS
TO PHIL
GO
DENY DELETE
ON ORDERS
TO PHIL;