CS Professional · Artificial Intelligence, Data Analytics and Cyber Security - Laws and Practice · Database Management
A bank's database administrator runs the statement GRANT SELECT ON customer TO audit_team. Which category of SQL sub-language does this statement belong to, and what is its effect?
GRANT belongs to Data Control Language (DCL). It gives the audit team the privilege to read the customer table using SELECT. It neither changes table structure nor retrieves data itself, and it is not a transaction control command, so DCL for access privileges is correct.
- ADDL, because it changes the structure of the customer table
- BDCL, because it gives the audit team read access privilegesCorrect
- CTCL, because it commits the privilege to the database
- DDML, because it retrieves rows from the customer table
Explanation
GRANT and REVOKE are Data Control Language commands that manage access privileges. Here the audit team receives permission to read data only. It does not alter table structure (DDL), manipulate rows itself (DML) or manage transactions (TCL).
Did you get it right without looking?
One question tells you little. A timed set on Database Management shows your real accuracy, how long you take and where you lose marks.
More Database Management questions
- A firm's database administrator runs a DELETE statement without a WHERE clause inside a transaction that has not been committed, then realis…
- A fintech company mines its big-data store of customer records to profile individual behaviour and sells the profiles to advertisers. The re…
- A bank encrypts the customer table in its database so that data files stolen from the server cannot be read without a key. This control main…
- In an ER design for a listed company's compliance system, 'Dependent' (family members of an employee) has no key of its own and is identifie…
- In an Employee table, Emp_ID is the primary key, and columns are Dept_ID and Dept_Head, where Dept_ID determines Dept_Head. A company wants …
- A company's payment database transfers Rs 5,000 from Account A to Account B. The debit on A succeeds, but the system crashes before the cred…