Recall & Review
beginner
What is an outer join in database terms?
An outer join returns all rows from one or both tables, including rows that do not have matching values in the other table. Missing matches show as NULL.
Click to reveal answer
beginner
What is the difference between left outer join and right outer join?
Left outer join returns all rows from the left table and matched rows from the right. Right outer join returns all rows from the right table and matched rows from the left.
Click to reveal answer
beginner
In Python's pandas, which function is used to perform an outer join?
The pandas function
merge() with the argument how='outer' performs an outer join.Click to reveal answer
intermediate
What does a full outer join return?
A full outer join returns all rows from both tables. Rows without matches in the other table have NULLs in the missing columns.
Click to reveal answer
beginner
Why might you use an outer join instead of an inner join?
Use an outer join when you want to keep all data from one or both tables, even if there are no matching rows, to avoid losing information.
Click to reveal answer
Which join returns all rows from the left table and matched rows from the right table?
✗ Incorrect
Left outer join keeps all rows from the left table and matches from the right.
In pandas, how do you specify an outer join using the merge function?
✗ Incorrect
Use how='outer' to perform an outer join in pandas merge.
What does a full outer join include that an inner join does not?
✗ Incorrect
Full outer join includes all rows from both tables, unmatched rows show NULLs.
If you want to keep all rows from the right table regardless of matches, which join do you use?
✗ Incorrect
Right outer join keeps all rows from the right table.
What value appears in columns from the other table when there is no match in an outer join?
✗ Incorrect
Missing matches show as NULL in outer joins.
Explain what an outer join does and give an example of when you might use it.
Think about keeping all data from one or both tables even if no match exists.
You got /3 concepts.
Describe the difference between left outer join, right outer join, and full outer join.
Focus on which table's rows are fully kept in each join type.
You got /4 concepts.