Filtering with WHERE
The WHERE clause is a row filter that is used to restrict the output of rows (or tuples ) in a result set. When the WHERE clause is used, the SQL Server database engine selects the rows from the table for the result set that meet the conditions listed in the WHERE clause. So, as we have previously illustrated, if no WHERE clause is used in a query, the query will return all rows from the table.Following is the general syntax of a SELECT statement with a WHERE clause:
SELECT column-names FROM Table WHERE criteria
For example, consider the following query:
Popularity: 8% [?]













last comments