Which language is used to query a database?
2026
Which language is used to query a database?
Answer: B. SQL — ConceptA query language provides a formal syntax for requesting and manipulating data stored in a database. Relational database systems use a language whose…
- A.
HTML
- B.
SQL
- C.
XML
- D.
BASIC
Attempted by 650 students.
Show answer & explanation
Correct answer: B
Concept
A query language provides a formal syntax for requesting and manipulating data stored in a database.
Relational database systems use a language whose commands cover data definition, retrieval, filtering, joining, insertion, updating, and deletion.
Application
The question asks for the language used to query a database. SQL stands for Structured Query Language and supplies commands such as SELECT for retrieving rows from relational tables.
Contrast
HTML is a markup language for structuring web pages.
XML is a markup format for representing and exchanging structured data.
BASIC is a general-purpose programming language rather than a database query language.
Cross-check
A request such as SELECT name FROM students is written in SQL and returns data from a database table.
Therefore, SQL is the language used to query a database.