" " Examples

Click on this push button to display a list of sample predicates.

Sample WHERE clauses:

The following examples show WHERE clauses (row predicates) that you can use to filter rows of the target table. Most are very general and designed for you to use as a model. Some examples may not conform to your database manager's SQL syntax. See your database's SQL reference for more information about WHERE clauses.

You can use the following operators in an SQL expression for a WHERE clause or a computed column. All normal restrictions apply to the operators. See your database's SQL reference guide for information about additional operators and restrictions for your database.

Operators:

CONCAT
||
/
*
+
-
( )

Column functions:

AVG
COUNT
MAX
MIN
SUM

Scalar functions:

CHAR
DATE, DAY, DAYS
DECIMAL
FLOAT
HOUR
INTEGER
LENGTH
MICROSECOND
MINUTE
MONTH
SECOND
SUBSTR
TIME
TIMESTAMP
TRANSLATE
VALUE
VARGRAPHIC
YEAR

Predicate comparison operators:

=
<>
<
>
<=
>=