Solved

Delete records based on unmatched records query

Posted on 2012-03-26
2
382 Views
Last Modified: 2012-03-26
I created a unmatched query from two tables. Table A and Table B.  How do I now delete those unmatched records from Table A.
0
Comment
Question by:mato01
2 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 200 total points
ID: 37765556
DELETE *
FROM TableA
WHERE TableA.ID IN (SELECT ID FROM YourUnmatchedQuery)
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37766568
<No Points wanted>
"Typically", ....but not always, you can open a query in design view and simply click one of the "Action Query" buttons to do things like Delete Records, Append Records, Update Records, ...etc

Design-->Query Tools-->Query Type

JeffCoachman
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question