Complete the code to grant SELECT privilege on the table to the user.
GRANT [1] ON TABLE sales_data TO USER analyst;The SELECT privilege allows the user to read data from the table.
Complete the code to revoke the USAGE privilege on the schema from the role.
REVOKE [1] ON SCHEMA marketing FROM ROLE marketing_analyst;USAGE privilege on a schema allows access to objects inside it. Revoking it removes that access.
Fix the error in the code to grant the role the ability to create schemas in the database.
GRANT [1] ON DATABASE sales_db TO ROLE data_engineer;The CREATE SCHEMA privilege on a database allows creating schemas inside it. 'CREATE TABLE' is not a valid privilege keyword.
Fill both blanks to grant the role the ability to read and write data on the table.
GRANT [1], [2] ON TABLE customer_info TO ROLE sales_team;
SELECT allows reading data, and INSERT allows adding new data to the table.
Fill all three blanks to revoke all privileges on the database from the user.
REVOKE [1], [2], [3] ON DATABASE analytics_db FROM USER data_scientist;
Revoking USAGE, CREATE SCHEMA, and OWNERSHIP removes access, ability to create schemas, and full control of the database.