exists_predicate

4D - Documentation   Français   English   German   Japanese   4D SQL Reference, Table of Contents   4D SQL Reference, Index   Back   Previous   Next

version 11


EXISTS (subquery)

Description

An exists_predicate is used to indicate a subquery and then check whether it returns anything. This is done by passing the EXISTS keyword followed by the subquery.

Example

This example returns the total sales when there is a store in the region specified:

   SELECT SUM (Sales)
       FROM Store_Information
       WHERE EXISTS
         (SELECT * FROM Geography
         WHERE region_name = 'West')

See Also

predicate, subquery.


4D - Documentation   Français   English   German   Japanese   4D SQL Reference, Table of Contents   4D SQL Reference, Index   Back   Previous   Next