Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete all
Message
From
31/03/2000 15:38:01
 
 
To
31/03/2000 15:23:14
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00353580
Message ID:
00353599
Views:
15
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
Map
View

Click here to load this message in the networking platform