M
Mona
Hi!
I'm trying to do something like this:
DELETE * FROM Table1 WHERE id1, id2 IN (SELECT id1,
id2 FROM Table2);
But Access does not support this query! I tried these one to:
This one asks me for the value for id2:
DELETE * FROM Table1 WHERE id1 IN (SELECT id1 FROM
Table2 where Table1.id2 = Table2.id2)
This one ask me the values for id1 and id2:
DELETE * FROM Table1 WHERE Exists (SELECT * FROM Table2 where
Table1.id1 = Table2.id1 and Table1.id2 = Table2.id2)
This one CAN'T delete, because there is a join:
DELETE * FROM Table1 inner join (SELECT id1,
id2 FROM Table2) on (Table1.id2 = Table2.id2 and
Table1.id1 = Table2.id1)
So nothing is working!
Please somebody Help!!
Thanks
I'm trying to do something like this:
DELETE * FROM Table1 WHERE id1, id2 IN (SELECT id1,
id2 FROM Table2);
But Access does not support this query! I tried these one to:
This one asks me for the value for id2:
DELETE * FROM Table1 WHERE id1 IN (SELECT id1 FROM
Table2 where Table1.id2 = Table2.id2)
This one ask me the values for id1 and id2:
DELETE * FROM Table1 WHERE Exists (SELECT * FROM Table2 where
Table1.id1 = Table2.id1 and Table1.id2 = Table2.id2)
This one CAN'T delete, because there is a join:
DELETE * FROM Table1 inner join (SELECT id1,
id2 FROM Table2) on (Table1.id2 = Table2.id2 and
Table1.id1 = Table2.id1)
So nothing is working!
Please somebody Help!!
Thanks