Solved

Delete records based on unmatched records query

Posted on 2012-03-26
2
379 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

910 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now