Quantified predicates

 

Quantified predicates

A quantified predicate compares a value with a set of values produced by a subselect.
expression   comparison-operator   SOME  |  ANY  |   ALL    ( subselect )

The expression must not evaluate to a reference type. When SOME or ANY is specified the result of the predicate is as follows:

When ALL is specified the result of the predicate is as follows: