Select
In this section you could find information about the select query syntax and its convertions.
Overall Select Translation
Simple select
-- Oracle
select * from table1;
select col1 from schema1.table1;
-- Snowflake
select * from PUBLIC.table1;
select col1 from schema1.table1;Where clause
-- Oracle
select col1 from schema1.table1 WHERE col1 = 1 and id > 0 or id < 1;
-- Snowflake
select col1 from schema1.table1 WHERE col1 = 1 and id > 0 or id < 1;Order By clause
-- Oracle
select col1 from schema1.table1 order by id ASC;
-- Snowflake
select col1 from schema1.table1 order by id ASC;Group by
Model Clause
The model clause is not supported yet.
Row Limiting Clause
Pivot
Snowflake doesn`t support the following statements: - Rename columns - Multiple Columns
Unpivot
Snowflake doesn`t support the following statements: - INCLUDE / EXCLUDE NULLS
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:
Example 2:
Example 3: Multiple join
Example 4: Join with other kinds of conditional
Example 5: Join with (+) inside a function
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
Select Flashback Query
Select Flashback QueryLast updated
Was this helpful?