Online Tutorials & Training Materials | STechies.com
Register Login

In which case would you use a FULL OUTER JOIN?

Shalesh Singh Visen || 09 Mar 2008 6:38 pm || 0

Q. In which case would you use a FULL OUTER JOIN?

A. Both tables have NULL values.

B. You want all unmatched data from one table.

C. You want all matched data from both tables.

D. You want all unmatched data from both tables.

E. One of the tables has more data than the other.

F. You want all matched and unmatched data from only one table.

SOLUTION

ANS: D

We use a FULL OUTER JOIN in Oracle when we want all unmatched data from both tables.

Explanation:

Oracle9i also makes it possible for you to easily execute a full outer join, including all records from the tables that would have been displayed if you had used both LEFT OUTER JOIN or RIGHT OUTER JOIN clauses.