Conditions
- Last Updated: May 15, 2020
- 1 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
A condition specifies a combination of one or more expressions and logical operators that evaluates to either TRUE, FALSE, or UNKNOWN. You can use a condition in the Where clause of the Delete, Select, and Update statements; and in the Having clauses of Select statements. The following table describes supported conditions.
| Condition | Description |
|---|---|
| Simple comparison | Specifies a comparison with expressions or subquery results. = , !=, <>, < , >, <=, <= |
| Group comparison | Specifies a comparison with any or all members in a list or
subquery .[= , !=, <>, < , >, <=, <=] [ANY, ALL, SOME] |
| Membership | Tests for membership in a list or
subquery.
|
| Range | Tests for inclusion in a
range.
|
| NULL | Tests for nulls.
|
| EXISTS | Tests for existence of rows in a
subquery.
|
| LIKE | Specifies a test involving pattern
matching.
|
| Compound | Specifies a combination of other
conditions.
|