Filter Conditions for Queries and Views

In SQL SELECT statements, filter conditions specify filter criteria that records retrieved from a SQL SELECT statement must meet to be included in query or view results. When creating queries and views with SQL SELECT statements to retrieve data, you can use filter conditions in the ON and WHERE clauses to extract only those records that meet the filter conditions. For example, you can use filter conditions to retrieve only those records where a field's values are less than a filter value, such as a date.

You can specify filter conditions similar to specifying join conditions but using filter values from a single table and customize filter conditions using comparison operators to control how those field values compare to those filter values. Join conditions compare a field value in one table to a field value in another other table instead of a filter value in the same table.

For the syntax of filter conditions in SQL SELECT statements, see SELECT - SQL Command.

This topic contains the following sections:

Expand imageParts of Filter Conditions

Expand imageFilter Comparison Operators

Expand imageFilter Options and Values

Expand imageWildcard Characters in Filter Conditions

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic