Which language is used to query a database?

2026

Which language is used to query a database?

Answer: B. SQLConceptA query language provides a formal syntax for requesting and manipulating data stored in a database. Relational database systems use a language whose…

  1. A.

    HTML

  2. B.

    SQL

  3. C.

    XML

  4. 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.

Explore the full course: Niacl Ao It Specialist

Loading lesson…