/ Published in: SQL
Same result as: "select from where NOT in" but faster. The result is: all customers that don't have orders.
Expand |
Embed | Plain Text
SELECT Id FROM customer c MINUS SELECT ID FROM customer c, ORDER o WHERE c.id = o.c_id
You need to login to post a comment.
