Query Missing ID Numbers

G

Guest

I have a customer table which has all customer ID numbers. I have a second table with customer correspondence. They are joined by ID number. I want to run a query to return all the ID numbers that are in the Customer table but not in the correspondence table. Thanks
 
R

Rover

SELECT CustomerTable.CustomerID, CustomerCorr.CustomerID
FROM CustomerTable LEFT JOIN Payments ON CustomerTable.CustomerID=
CustomerCorr.CustomerID
WHERE (((CustomerCorr.CustomerID) Is Null));

I have a customer table which has all customer ID numbers. I have a second table with customer correspondence.

They are joined by ID number. I want to run a query to return all the
ID numbers that are in the

Customer table but not in the correspondence table. Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top