Subqueries can often be re-written to use a standard outer join, resulting in faster performance. As we may know, an outer join uses the plus sign (+) operator to tell the database to return all non-matching rows with NULL values.

Hence we combine the outer join with a NULL test in the WHERE clause to reproduce the result set without using a sub-query.

Leave a Reply

Your email address will not be published. Required fields are marked *