Complete the code to grant SELECT permission on the table 'employees' to user 'john'.
GRANT [1] ON employees TO john;The SELECT permission allows the user to read data from the table.
Complete the code to revoke UPDATE permission on the table 'products' from user 'alice'.
REVOKE [1] ON products FROM alice;The UPDATE permission allows modifying existing rows. Revoking it stops the user from changing data.
Fix the error in the code to grant DELETE permission on 'orders' to user 'mike'.
GRANT [1] orders TO mike;The correct syntax is GRANT DELETE ON orders TO mike;. The keyword ON must come after the permission.
Fill both blanks to grant INSERT and UPDATE permissions on 'customers' to user 'emma'.
GRANT [1], [2] ON customers TO emma;
To allow adding and modifying data, grant INSERT and UPDATE permissions.
Fill all three blanks to revoke SELECT permission on 'sales' from user 'dave' and grant him INSERT permission.
REVOKE [1] ON sales FROM dave; GRANT [2] ON sales TO [3];
This code first removes SELECT permission, then gives INSERT permission to user dave.