Contents Index The FROM clause: specifying tables Using comparison operators in the WHERE clause

ASA SQL User's Guide
  Queries: Selecting Data from a Table

The WHERE clause: specifying rows


The WHERE clause in a SELECT statement specifies the search conditions for exactly which rows are retrieved. The general format is:

SELECT select_list
FROM table_list
WHERE search-condition

Search conditions, also called qualifications or predicates, in the WHERE clause include the following:

In addition, the WHERE keyword can introduce the following:

For more information about search conditions, see Search conditions.

The following sections describe how to use WHERE clauses.


Using comparison operators in the WHERE clause
Using ranges (between and not between) in the WHERE clause
Using lists in the WHERE clause
Matching character strings in the WHERE clause
Character strings and quotation marks
Unknown Values: NULL
Connecting conditions with logical operators

Contents Index The FROM clause: specifying tables Using comparison operators in the WHERE clause