3. Joins: combine tables
3.6 Chapter 3 test
Highlights & notes
Select lesson text to highlight it, or tap Add note.
Bookmarks
Bookmark a lesson to see it here.
Six questions on inner joins, left joins and finding missing rows: two Easy, two Medium and two Hard.
Question 1 · Easy
Why do we join tables?
Question 2 · Easy
In orders AS o, what is o?
Question 3 · Medium
How many rows does orders JOIN customers ON orders.customer_id = customers.id return?
Question 4 · Medium
Which join keeps customers who have no orders?
Question 5 · Hard
After customers LEFT JOIN orders, SUM(amount) per customer is double the true value in a report. What is the likely cause?
Question 6 · Hard
You need customers with no delivered order. Where does status = 'delivered' go?
Key takeaways
Review any question you missed, then move on to the next chapter.
Save your progress
Start free and your progress, code and notes stay saved. Free for 1 month, no card needed.
Start free Log in