DB2 10.5 for Linux, UNIX, and Windows

Predicates

A predicate specifies a condition that is true, false, or unknown about a given value, row, or group.

The following rules apply to all types of predicates:

A fullselect is a form of the SELECT statement that, when used in a predicate, is also called a subquery.

Row-value-expression

The operand of several predicates (basic, quantified, and IN) can be expressed as a row value expression:

Read syntax diagramSkip visual syntax diagram
row-value-expression

      .-,----------.      
      V            |      
|--(----expression-+--)-----------------------------------------|

A row value expression returns a single row that consists of one or more fields. The field values can be specified as a list of expressions. The number of fields that are returned by the row value expression is equal to the number of expressions that are specified in the list.