SQL: ... WHERE X IN (SELECT Y FROM ...) ...

Posted by Craig Johnston on Stack Overflow See other posts from Stack Overflow or by Craig Johnston
Published on 2010-06-02T08:27:24Z Indexed on 2010/06/02 8:33 UTC
Read the original article Hit count: 186

Filed under:

Is the following the most efficient in SQL to achieve its result:

SELECT * FROM Customers WHERE Customer_ID NOT IN (SELECT Cust_ID FROM SUBSCRIBERS)

Could some use of joins be better and achieve the same result?

© Stack Overflow or respective owner

Related posts about sql