Outer Joins
Outer Joins
The FULL OUTER JOIN keyword returns all records when there is a match in left (table1) or
right (table2) table records.
FULL OUTER JOIN and FULL JOIN are the same.
FULL OUTER JOIN Syntax
SELECT column_name(s)
FROM table1
FULL OUTER JOIN table2
ON table1.column_name = table2.column_name
WHERE condition;
10308 2 7 1996-09-18 3
10309 37 3 1996-09-19 1
10310 77 8 1996-09-20 2
CustomerName OrderID
Null 10309
Null 10310
The FULL OUTER JOIN keyword returns all matching records from both tables
whether the other table matches or not.
So, if there are rows in "Customers" that do not have matches in "Orders", or if there
are rows in "Orders" that do not have matches in "Customers", those rows will be
listed as well.