Problem Statement
What does a FULL OUTER JOIN return?
Explanation
FULL OUTER JOIN returns the union of matches and non-matches from both sides, padding missing columns with NULLs.
It is useful for reconciliation and diff-like reports where you must see orphans from both directions.
Code Solution
SolutionRead Only
SELECT a.id, b.id FROM A a FULL OUTER JOIN B b ON b.id = a.id;
