The question is:
Find the listing of customers who did not make purchases during the invoicing period.
I have the following query using NOT IN, but I want to write one that does NOT use NOT IN. What is a better alternative? Would I use joins?
SELECT customers.cus_code, customers.cus_balance
FROM customers
WHERE customers.cus_code NOT IN (SELECT invoices.cus_code FROM invoices)
ORDER by customers.cus_code

not inis "performance reasons" then you're unlikely to win by changing it. If that's not the reason, perhaps you could elaborate on what the reasons are for avoiding straightforward code?