Explain what SQL is and its primary use.
Instruction: Provide a brief overview of SQL and its main purpose in database management.
Updated
Official answer
SQL means Structured Query Language. It is used to define and work with data in relational database systems: retrieve rows with SELECT, add or change data with INSERT and UPDATE, remove rows with DELETE, and define objects with statements such as CREATE TABLE.
SQL is largely declarative: a query specifies the desired result, while the database planner chooses how to execute it. That does not make every query efficient; schema design, indexes, data distribution and the execution plan still matter.
SQL is a language, not a particular database product. PostgreSQL, SQL Server and other systems implement overlapping standards with different extensions and behavior. State the target engine when syntax, transactions or types matter. Query results have no guaranteed order unless the query specifies one with ORDER BY.
Assessment: Distinguish data retrieval, data changes and schema changes, and avoid treating all SQL dialects as identical.