ANY Predicate

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentation

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected].

Thank you for your understanding.

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

{ expression quantifier ( literal [ {, | OR} ... ] ) |
  { expression | ( expression [,...] ) } quantifier ( subquery )
}

Where quantifier:

{ comparison_operator [ NOT ] IN } { ALL |ANY | SOME }

Snowflake syntax

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

No related EWIs.

Last updated