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

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

To CROSS JOIN

Example 6: Complex case that requires the use of CROSS JOIN

Select Flashback Query

Select Flashback Query

Last updated

Was this helpful?