General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Ok, got it to work. I tried Nick's first and it didn't delete anything. Then I tried yours, and it deleted too much. I think the problem was that it didn't know that the custno and city had to be in the _same_ record. So I modified it to:
DELETE FROM table1 WHERE custno+city in (SELECT custno+city from table2)
Bingo!
Thanks both of you!
Michelle
>DELETE FROM table1 WHERE custno in (SELECT custno from table2) AND city in (SELECT city from table2)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only