9 lines
112 B
SQL

SELECT
*
FROM
Customers c
LEFT JOIN
Orders o ON c.id = o.customerId
WHERE
o.customerId IS NULL;