query

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

SELECT CompanyName FROM Publishers WHERE State = 'NY'

Query types include select, action, parameter, combination, and stored procedure queries.