Select

In this section you could find information about the select query syntax and its convertions.

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.

Some parts in the output codes are omitted for clarity reasons.

Overall Select Translation

Simple select

Input Code:

IN -> Oracle_01.sql
select * from table1;
select col1 from schema1.table1;

Output Code:

OUT -> Oracle_01.sql
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:

In Oracle, the FETCH / OFFSET WITH TIES is ignored when no ORDER BY is specified in the SELECT. This case will be transformed to a FETCH / OFFSET with the ONLY keyword in Snowflake, please note that in Snowflake the ONLY keyword has no effect in the results and is used just for readability.

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

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:

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 Query
  1. SSC-EWI-0015: Pivot/Unpivot multiple functions not supported.

Last updated