Difficulty: Easy
Correct Answer: All of the above can be done by SQL.
Explanation:
Introduction / Context:
SQL is a full declarative language for relational databases with multiple sublanguages. It is not limited to querying; it includes defining schemas, manipulating data, and controlling permissions. Understanding this breadth is essential for both developers and DBAs.
Given Data / Assumptions:
Concept / Approach:
SQL includes: DDL (CREATE, ALTER, DROP) to manage structures; DML (SELECT, INSERT, UPDATE, DELETE, MERGE) to read and change data; DCL (GRANT, REVOKE) for privileges; TCL (COMMIT, ROLLBACK, SAVEPOINT) for transactions. Therefore, SQL can create structures, query data, and modify data.
Step-by-Step Solution:
Verification / Alternative check:
All major DBMS manuals document these categories explicitly under SQL reference sections.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
All of the above can be done by SQL.
Discussion & Comments