Select

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

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:

IN -> Oracle_02.sql
select col1 from schema1.table1 WHERE col1 = 1 and id > 0 or id < 1;

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:

  • SSC-EWI-0015: Pivot/Unpivot multiple functions not supported.

Select Flashback Query

Select Flashback Query

Last updated