SQL practice: Roles and Permissions: GRANT and REVOKE

Chapter 31B · 4 questions · included in full access

  1. Question 1 · easy

    Create a new database role named junior_analyst.

    Solve it in your browser
  2. Question 2 · easy

    Grant SELECT and INSERT privileges on the customers table to junior_analyst.

    Solve it in your browser
  3. Question 3 · hard

    Query information_schema.role_table_grants to inspect which privileges junior_analyst holds on customers. Return table_name and privilege_type ordered by privilege_type.

    Solve it in your browser
  4. Question 4 · hard

    Revoke the INSERT privilege on customers from junior_analyst, leaving only read access.

    Solve it in your browser

These questions are part of full access.

The first chapters of every track are free. Full access is a one-time payment.

See pricing