ANY Predicate
This is a work in progress, changes may be applied in the future.
Description
In Teradata enables quantification in a comparison operation or IN/NOT IN predicate. The comparison of expression and at least one value in the set of values returned by subquery is true. Please review the following Teradata documentation for more information.
Teradata syntax
Where quantifier:
Snowflake syntax
In subquery form, IN is equivalent to = ANY
and NOT IN is equivalent to <> ALL
. Review the following Snowflake documentation for more infromation.
To compare individual values:
To compare row constructors (parenthesized lists of values):
To compare a value to the values returned by a subquery:
Sample Source Patterns
Sample data
Teradata
Snowflake
Equal ANY pedicate in WHERE clause
Teradata
Snowflake
Other comparison operators in WHERE clause
When there are other comparison operators, there equivalent translation is to add a subquery with the required logic.
Teradata
Snowflake
IN ANY in WHERE clause
Teradata
Snowflake
NOT IN ALL in WHERE clause
Teradata
Snowflake
Known Issues
NOT IN ANY in WHERE clause
Teradata
Snowflake
Related EWIs
No related EWIs.
Last updated