DevPath

Find customers with no orders

Foundation · fluency · 15 min · runtime php-cli

Brief

Write a query returning customers who have no orders, using NOT EXISTS or a LEFT JOIN ... IS NULL. Explain why adding a condition on the joined table to WHERE changes the result of a LEFT JOIN.

3 progressive hints are available in the editor.

Public checks

  • returns childless rows — expected: uses NOT EXISTS or LEFT JOIN with IS NULL