Selecting Rows: The WHERE Clause

The WHERE clause in a SELECT statement specifies the criteria for which rows to retrieve. The WHERE clause has the following syntax:

SELECT select_list
FROM {table_name | viewname list} [(optimizer_hints)]
WHERE search_conditions

Search conditions, or qualifications, in the WHERE clause include:

In addition, WHERE can introduce join conditions and subqueries. For more information, see Using Joins to Create Multitable Queries and Using Subqueries.

For a complete list of search conditions, see Search Conditions in the Microsoft SQL Server Transact-SQL Reference.