Complete the code to grant SELECT permission on the column 'email' of the 'users' table to user 'alice'.
GRANT SELECT ([1]) ON users TO alice;The GRANT SELECT (email) statement gives user 'alice' permission to read only the 'email' column in the 'users' table.
Complete the code to revoke SELECT permission on the 'salary' column from user 'bob'.
REVOKE SELECT ([1]) ON employees FROM bob;The REVOKE SELECT (salary) statement removes the permission for user 'bob' to read the 'salary' column in the 'employees' table.
Fix the error in the code to grant SELECT permission on the 'phone' column to user 'carol'.
GRANT SELECT [1] ON contacts TO carol;The correct syntax requires parentheses around the column name: GRANT SELECT (phone) ON contacts TO carol;
Fill both blanks to grant SELECT permission on columns 'name' and 'email' to user 'dave'.
GRANT SELECT ([1], [2]) ON customers TO dave;
The statement grants SELECT permission on the 'name' and 'email' columns to user 'dave'.
Fill all three blanks to revoke SELECT permission on columns 'price', 'quantity', and 'discount' from user 'eve'.
REVOKE SELECT ([1], [2], [3]) ON sales FROM eve;
This revokes SELECT permission on the 'price', 'quantity', and 'discount' columns from user 'eve'.