QuestionQ280

VerifiedControlling User Access

User Sue executes the following SQL statement:

GRANT SELECT ON sue.EMP TO alice WITH GRANT OPTION;  

User Alice executes the following SQL statement:

GRANT SELECT ON sue.EMP TO reena WITH GRANT OPTION;  

User Reena executes the following SQL statement:

GRANT SELECT ON sue.EMP TO timber;  

User Sue executes the following SQL statement:

REVOKE select on sue.EMP FROM alice;  

For which users does the REVOKE command revoke SELECT privileges on the SUE.EMP table?

Explanation

Revoking an object privilege from a user also revokes that privilege from users or roles to whom the user granted it. Grants propagated through WITH GRANT OPTION therefore cascade from Alice to Reena and from Reena to Timber; Sue, the table owner, is not affected.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!