Problem Description

You want to allow SELECT on Payroll only through a view, not directly on the base table. Create a view that hides salary and bank_account, then grant SELECT on the view to user auditor.

Input Format

SQL DDL + DCL

Output Format

View created + privileges

Sample Test Case

Input:
Payroll(emp_id, salary, bank_account)
Output:
Masked data accessible

Constraints

Do not grant base table

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next