🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.INNER JOIN orders and check order_id IS NULL
  2. B.customers LEFT JOIN orders, then WHERE orders.order_id IS NULL
  3. C.RIGHT JOIN customers and check customer_id IS NULL
  4. 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 →