Full Outer Joins
Finally, we have a full outer join. Joining two tables with a full outer join gives us a result set that includes all records from both tables with null values for unmatched rows.
Now that another event planner has joined Mary’s company, to get all of the
events run by the company in August, we can use a full outer join to combine
mary_events
and leah_events
.
|
|
The Venn diagram above shows the result set highlighted in blue.
Check Your Understanding
Question
What does a FULL JOIN
do?
- Returns results with matching rows in both tables
- Returns results with all the rows from the left table with null values for unmatched rows from the right table
- Returns results with all the rows from the right table with null values for unmatched rows from the left table
- Returns results from all the rows from both tables with null values filled in for all unmatched rows