Equijoin

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

Description

An equijoin is an implicit form of the join with a join condition containing an equality operator. For more information for Oracle Equijoin, check here.

No special transformation is performed for this kind of Join since Snowflake supports the same syntax.

Sample Source Patterns

Order by clause added because the result order may vary between Oracle and Snowflake.

Since the result set is too large, the Row Limiting Clause was added. You can remove it to retrieve the entire result set.

Check this section to set up the sample database.

Basic Equijoin case

Oracle

IN -> Oracle_01.sql
SELECT last_name, job_id, hr.departments.department_id, department_name
FROM hr.employees, hr.departments
WHERE hr.employees.department_id = hr.departments.department_id
ORDER BY last_name
FETCH FIRST 5 ROWS ONLY;

Snowflake

OUT -> Oracle_01.sql
SELECT last_name, job_id, hr.departments.department_id, department_name
FROM
hr.employees,
hr.departments
WHERE hr.employees.department_id = hr.departments.department_id
ORDER BY last_name
FETCH FIRST 5 ROWS ONLY;

Known issues

1. Results ordering mismatch between languages

The result of the query will have the same content in both database engines but the order might be different if no Order By clause is defined in the query.

No related EWIs.

Last updated