EXISTS Conditions

An EXISTS condition is met if the subquery returns at least one row.

The syntax for EXISTS conditions is as follows:

EXISTSsubquery )

The EXISTS condition is TRUE if the subquery result contains at least one row, and FALSE if the subquery result does not contain any rows. The EXISTS condition cannot be UNKNOWN.

Compatibility

The EXISTS condition is compatible between Adaptive Server Enterprise and SAP Sybase IQ.