A query requests data from the database and receives the results. This process is also known as data retrieval. All SQL queries are expressed using the SELECT statement. You use the SELECT statement to retrieve all, or a subset, of the rows in one or more tables, and to retrieve all, or a subset, of the columns in one or more tables.
Querying and the SELECT statement