← Quiz: SQL Joins: all 10 questions
Quiz: SQL Joins · Question 3 of 10
How do you find customers who have NEVER placed an order?
How do you find customers who have NEVER placed an order?
- A.INNER JOIN orders and check order_id IS NULL
- B.customers LEFT JOIN orders, then WHERE orders.order_id IS NULL
- C.RIGHT JOIN customers and check customer_id IS NULL
- D.CROSS JOIN both tables
Answer & explanation
Correct answer: customers LEFT JOIN orders, then WHERE orders.order_id IS NULL
LEFT JOIN keeps every customer; those without orders get NULL order columns.
Can you get the rest right without peeking?
Take the timed Quiz: SQL Joins quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →