Data query language (DQL) is part of the base grouping of
SQL
Structured Query Language (SQL) (pronounced ''S-Q-L''; or alternatively as "sequel")
is a domain-specific language used to manage data, especially in a relational database management system (RDBMS). It is particularly useful in handling s ...
sub-languages. These sub-languages are mainly categorized into four categories: a data query language (DQL), a
data definition language
In the context of SQL, data definition or data description language (DDL) is a syntax for creating and modifying database objects such as tables, indices, and users. DDL statements are similar to a computer programming language for defining d ...
(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.
Related language types
*
Data definition language
In the context of SQL, data definition or data description language (DDL) is a syntax for creating and modifying database objects such as tables, indices, and users. DDL statements are similar to a computer programming language for defining d ...
*
Data manipulation language
*
Data control language
*
Transactional control language
References
{{databases
Data modeling
SQL
Database management systems