← Database Management System 🟑 Medium πŸ“‹ Sanfoundry

OE and SCOTT are the users in the database. The ORDERS table is owned by OE. Evaluate the statements…

Question #1685 of 749+ in Database Management System

πŸ“ Question #1685

OE and SCOTT are the users in the database. The ORDERS table is owned by OE. Evaluate the statements issued by the DBA in the following sequence: CREATE ROLE r1; GRANT SELECT, INSERT ON oe. orders TO r1; GRANT r1 TO scott; GRANT SELECT ON oe. orders TO scott; REVOKE SELECT ON oe.orders FROM scott;

⌨️ Press A B C D to select
βœ“

All Options & Correct Answer

A SCOTT would be able to query the OE.ORDERS table
B SCOTT would not be able to query the OE.ORDERS table
C The REVOKE statement would remove the SELECT privilege from SCOTT as well as from the role R1 Correct
D The REVOKE statement would give an error because the SELECT privilege has been granted to the role R1

πŸ“‹ Question Details

πŸ“š
Subject
Database Management System
🎯
Difficulty
Medium
πŸ“…
Year
β€”
πŸ“‹
Source
Sanfoundry

πŸ“€ Share This MCQ

πŸ“š Want More?

Practice Database Management System MCQs

749+ questions with detailed answers