Select
In this section you could find information about the select query syntax and its convertions.
Overall Select Translation
Simple select
Input Code:
select * from table1;
select col1 from schema1.table1;Output Code:
select * from
table1;
select col1 from
schema1.table1;Where clause
Input Code:
Output Code:
Order By clause
Input Code:
Output Code:
Group by
Input Code:
Output Code:
Model Clause
The model clause is not supported yet.
Row Limiting Clause
Input Code:
Output Code:
Pivot
Snowflake does not support the following statements: - Rename columns - Multiple Columns
Input Code:
Output Code:
Unpivot
Snowflake does not support the following statements: - INCLUDE / EXCLUDE NULLS
Input Code:
Output Code:
Transformation of JOIN (+) to ANSI Syntax
This translation is currently deactivated and it's only meant for reference for translations done with previous versions of SnowConvert. For the current translation check the section above.
SnowConvert translates the NON-ANSI special outer join (+) syntax to ANSI outer join syntax. This subsection shows some examples:
To LEFT OUTER JOIN
Example 1:
Input Code:
Output Code:
Example 2:
Input Code:
Output Code:
Example 3: Multiple join
Input Code:
Output Code:
Example 4: Join with other kinds of conditional
Input Code:
Output Code:
Example 5: Join with (+) inside a function
Input Code:
Output Code:
Please be aware that some of the patterns that were translated to LEFT OUTER JOIN could retrieve the rows in a different order.
To CROSS JOIN
Example 6: Complex case that requires the use of CROSS JOIN
Input Code:
Output Code:
Hierarchical Queries
Hierarchical queries in Snowflake allow to organize and retrieve data in a tree-like structure, typically using the CONNECT BY clause. This clause Joins a table to itself to process hierarchical data in the table.
Input Code:
Output Code:
Select Flashback Query
Select Flashback QueryRelated EWIs
SSC-EWI-0015: Pivot/Unpivot multiple functions not supported.
Last updated
