Complete the code to grant usage on a schema to a user.
GRANT [1] ON SCHEMA sales TO alice;The USAGE privilege allows a user to access objects in the schema.
Complete the code to revoke schema usage from a role.
REVOKE [1] ON SCHEMA marketing FROM marketing_team;Revoking USAGE removes the ability to access the schema.
Fix the error in the code to grant create privilege on a schema.
GRANT [1] ON SCHEMA hr TO bob;The CREATE privilege allows creating new objects in the schema.
Fill both blanks to grant all privileges on a schema to a user.
GRANT [1] ON SCHEMA [2] TO charlie;
ALL PRIVILEGES grants all schema-level rights, and sales is the schema name.
Fill all three blanks to revoke create and usage privileges on a schema from a role.
REVOKE [1], [2] ON SCHEMA [3] FROM interns;
Revoking CREATE and USAGE removes ability to create objects and access the development schema.
