Jump to content

Data query language

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Kerbless (talk | contribs) at 15:01, 20 June 2023 (NR). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Data query language (DQL) is part of the base grouping of SQL sub-languages. These sub-languages are mainly categorized into four categories: a data query language (DQL), a data definition language (DDL), a data control language (DCL), and a data manipulation language (DML). Sometimes a transaction control language (TCL) is argued to be part of the sub-language set as well.

DQL statements are used for performing queries on the data within schema objects. The purpose of DQL commands is to get the schema relation based on the query passed to it.

Although often considered part of DML, the SQL SELECT statement is strictly speaking an example of DQL. When adding FROM or WHERE data manipulators to the SELECT statement the statement is then considered part of the DML.