Outer Join
Some parts in the output code are omitted for clarity reasons.
Description
An outer join extends the result of a simple join. An outer join returns all rows that satisfy the join condition and returns some or all those rows from one table for which no rows from the other satisfy the join condition. (Oracle SQL Language Reference Outer Joins Subsection).
Oracle ANSI syntax
Oracle also supports the (+) operator that can be used to do outer joins. This operator is added to a column expression in the WHERE clause.
Snowflake ANSI syntax
Snowflake also supports the ANSI syntax for OUTER JOINS, just like Oracle. However, the behavior when using the (+) operator might be different depending on the usage. For more information on Snowflake Joins check here.
The Snowflake grammar is one of the following:
Sample Source Patterns
Order by clause added because the result order may vary between Oracle and Snowflake.
Since the result set is too large, Row Limiting Clause was added. You can remove it to retrieve the entire result set.
Check this section to set up the sample database.
For the following examples, these inserts and alter statements were executed to distinguish better the result for each kind of JOIN:
1. ANSI syntax
Snowflake fully supports the ANSI syntax for SQL JOINS. The behavior is the same for both database engines.