Currently this query:
SELECT InvoiceNumber, CustomerCode, Amount, InvoiceDate
FROM Invoice
Returns:
aaa, 111, 5, 07/12/2009
bbb, 111, 5, 07/11/2009
ccc, 222, 5, 07/12/2009
However, I want to write: Where date = '07/12/2009'
, but I only want to return the results where there the customer has only one invoice...
So Customercode 222 would be returned, but 111 wont, as 111 has invoices from previous months....
Hope you can help! :D