Delete Query

pablofonto

Registered User.
Local time
Yesterday, 22:00
Joined
Sep 8, 2005
Messages
79
I need help!

I'm trying to delete records from Table1 where the field "Name" is equal to the field "Name" in Table2. Please see below what I tried and is not working, any ideas?

DELETE table1.*
FROM table1 INNER JOIN table2 ON table1.Name = table2.Name;

Thanks! :confused:
 
Try this:

DELETE Table1.*
FROM Table1
WHERE (((Table1.Name) In (select Name from Table2)));
 
It worked!

thank you.
 

Users who are viewing this thread

Back
Top Bottom