Expression lists
Description
An expression list is a combination of expressions, and can appear in membership and comparison conditions (WHERE clauses) and in GROUP BY clauses. (Redshift SQL Language Reference Expression lists).
This syntax is fully supported in Snowflake.
Grammar Syntax
Sample Source Patterns
Setup data
IN Clause
Input Code:
IN -> Redshift_01.sql
Output Code:
OUT -> Redshift_01.sql
Comparisons
Input Code:
IN -> Redshift_02.sql
Output Code:
OUT -> Redshift_02.sql
Expression list comparisons with the following operators may have a different behavior in Snowflake. ( < , <= , > , >=
). These operators are transformed into logical AND
operations to achieve full equivalence in Snowflake.
Input Code:
IN -> Redshift_02.sql
Output Code:
OUT -> Redshift_02.sql
Nested tuples
Input Code:
IN -> Redshift_03.sql
Output Code
OUT -> Redshift_03.sql
Case statement
Input Code:
IN -> Redshift_04.sql
Output Code
OUT -> Redshift_04.sql
Multiple Expressions
Input Code:
IN -> Redshift_05.sql
Output Code
OUT -> Redshift_05.sql
Joins
Input Code:
IN -> Redshift_06.sql
Output Code
OUT -> Redshift_06.sql
Known Issues
No issues were found.
Related EWIs
There are no known issues.
Last updated