Exclusion Join -- SQL Operators That Often Cause an Exclusion Join Operation
Exclusion join is a product, merge, or hash join where only the rows that do not satisfy (are NOT IN) any condition specified in the request are joined.
In other words, exclusion join finds rows in the first table that do not have a matching row in the second table.
Exclusion join is an implicit form of the outer join.
Exclusion product joins with dynamic row partition elimination are not supported for8-byte partitioning.
- Use of the NOT IN logical operator in a subquery.
- Use of the EXCEPT and MINUS set operators.
Exclusion Joins and NULLABLE Columns
- When you create a table, define any columns that might be used for NOT IN join conditions as NOT NULL.
- When you write a query, qualify a potentially problematic join with an IS NOT NULL specification. For example:
WHERE Customer.CustAddress IS NOT NULL