EXISTS Quantifier - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530

SQL supports the EXISTS () logical quantifier for testing the result of subquery search conditions. See Specifying Subqueries in Search Conditions.

If the subquery would return response rows, the WHERE condition is satisfied. Specifying NOT EXISTS predicate inverts the test.

A subquery in a search condition returns a boolean value that indicates whether responses would be returned, but does not return rows.

The subquery can be correlated with an outer query.