Difficulty: Easy
Correct Answer: Incorrect
Explanation:
Introduction / Context:
SQL offers several join flavors: inner, outer (LEFT/RIGHT/FULL), natural, and equi-joins. Confusion often arises between outer joins and natural joins. This statement claims an outer join is the same as an equi-join but with one duplicate column removed, which is not correct.
Given Data / Assumptions:
Concept / Approach:
The defining feature of outer joins is row preservation, not column projection. Removing duplicate columns is a characteristic of NATURAL JOIN (and sometimes USING syntax), not of outer joins per se. An outer join can be equi-based in its predicate, but it is distinct because it keeps non-matching rows from the preserved side(s).
Step-by-Step Solution:
Verification / Alternative check:
Test with sample data containing non-matching keys; only outer joins preserve those rows; natural join behavior on columns is unrelated to row preservation.
Why Other Options Are Wrong:
Common Pitfalls:
Thinking USING/NATURAL removes columns for all join types; forgetting that outer joins are about including unmatched rows.
Final Answer:
Incorrect
Discussion & Comments