Complete the code to create a new role named 'reporter'.
CREATE ROLE [1];The CREATE ROLE command followed by the role name creates a new role. Here, 'reporter' is the new role.
Complete the code to grant login permission to the role 'reporter'.
ALTER ROLE reporter [1] LOGIN;NO LOGIN which disables login.WITH keyword.To allow a role to login, use ALTER ROLE role_name WITH LOGIN;. The keyword WITH is required before LOGIN.
Fix the error in the code to revoke SELECT privilege on table 'sales' from role 'reporter'.
REVOKE [1] ON sales FROM reporter;INSERT instead of SELECT.The REVOKE command removes privileges. To revoke the ability to read data, use SELECT.
Fill both blanks to grant SELECT and INSERT privileges on table 'employees' to role 'hr'.
GRANT [1], [2] ON employees TO hr;
DELETE or UPDATE.To allow reading and adding data, grant SELECT and INSERT privileges.
Fill all three blanks to create a role 'manager' with login, password 'secure123', and superuser privileges.
CREATE ROLE [1] WITH [2] PASSWORD '[3]' SUPERUSER;
NOSUPERUSER which denies superuser rights.This command creates a role named 'manager' that can login with password 'secure123' and has superuser rights.