An SQL SELECT statement is used to extract specified data from a table or view in the database and return the data in a result table. An SQL SELECT statement is sometimes referred to as an SQL query.
A SELECT statement consists of the following types of clauses: