Transfer ownership idea (concept + SQL)
SQL
Hard
3 views
Problem Description
If a user owns objects and you want to drop the user, what should you do first? Write a safe sequence in SQL terms.
Sample Test Case
Input:
Owned objects exist
Output:
Ownership transferred
Constraints
DB-specific; show general idea
Official Solution
ALTER SCHEMA sales_db OWNER TO admin; DROP USER old_owner;
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!