Condition: .-Logical_Operator-----------------------------------. V (1) | |----+-----+--+-| Comparison Conditions |-------------+-+-------| '-NOT-' | (2) | +-| Condition with Subquery |-----------+ | (3) (4) | '--------| User-Defined Function |------'
Element | Description | Restrictions | Syntax |
---|---|---|---|
Logical
_Operator |
Combines two conditions | Valid options are OR ( = logical union) or AND ( = logical intersection) | Condition with AND or OR, p. Conditions with AND or OR |
A condition is a search criterion, optionally connected by the logical operators AND or OR. Conditions can be classified into the following categories:
A condition can contain an aggregate function only if it is used in the HAVING clause of a SELECT statement or in the HAVING clause of a subquery.
No aggregate function can appear in a condition in the WHERE clause of a DELETE, SELECT, or UPDATE statement unless both of the following are TRUE:
In Dynamic Server, user-defined functions are not valid as conditions in the following contexts:
SPL routines are not valid as conditions in the following contexts:
External routines are not valid as conditions in the following contexts: