Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

match records from both table then delete

Status
Not open for further replies.

din2005

Programmer
Mar 22, 2005
162
GB
Hi all i have 2 tables,

i can make a query which displays records that match each other.

In table 1 there are 136 records in table 2 there are 5000. but in table 2 i would to delete the 136 records that match table 1.

any criteria do i need to put?
 
DELETE Table2.* FROM Table2 INNER JOIN Table1
ON your join condition here

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top