How to delete customers without orders

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have made an "unmatched query" showing all my "customers" without "orders".
Now I want to delete these customers.

How do I make a single query that deletes all my customers without orders?
 
Diane,

Set up a DELETE query on table Customers, and use the following
criterion on the CustomerID field:

Not In (SELECT CustomerID FROM Orders)

where I have assumed table Orders to have a CustomerID field; substitute
the actual tables.

Tip: back up before you try!

HTH,
Nikos
 

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

Back
Top