Semijoin
Some parts in the output code are omitted for clarity reasons.
Description
A semijoin returns rows that match an
EXISTS
subquery without duplicating rows from the left side of the predicate when multiple rows on the right side satisfy the criteria of the subquery. Semijoin transformation cannot be done if the subquery is on anOR
branch of theWHERE
clause. (Oracle SQL Language Reference Semijoin Subsection)
Sample Source Patterns
Order by clause added because the result order may vary between Oracle and Snowflake.
Check this section to set up the sample database.
Basic Semijoin case
Oracle
IN -> Oracle_01.sql
Snowflake
OUT -> Oracle_01.sql
As proved previously the semijoin in Oracle is functionally equivalent to Snowflake.
Known Issues
No issues were found.
Related EWIs
No related EWIs.
Last updated