query definition

A formalized instruction to a database to either return a set of records or perform a specified action on a set of records as specified in the query. For example, the following SQL query statement returns records:

SELECT CompanyName FROM Publishers WHERE State = 'NY'