Remove all privileges safely
SQL
Hard
3 views
Problem Description
You are deactivating contractor_user. Revoke all granted permissions first, then lock/disable the account (write generic SQL steps).
Input Format
SQL statements
Output Format
Account restricted
Constraints
Exact syntax varies by database
Official Solution
REVOKE ALL PRIVILEGES ON *.* FROM contractor_user; ALTER USER contractor_user ACCOUNT LOCK;
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!