Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Matching Tables together
Message
From
23/04/2001 06:38:03
Raymond Humphrys
Michigan Department of Community Health
Bath, Michigan, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00498452
Message ID:
00498493
Views:
9
Worked great. Never thought you could combine a DELETE and SELECT together like that. Thanks.

Go Red Wings ..


>>I have two tables. I need to find and eliminate records in table 2, that are in table 1 using two variables, field 1 and field 2. Any ideas how to do this?
>>
>>thanks
>
>Assuming both fields are character data type and the same in both tables:
>
>delete from Table2 where Field1+Field2 in (select Field1+Field2 from Table1)
>
>Otherwise, you will have to Transform() [or convert] them to character strings. You should also test this on copies of your tables with a subset of the data. It worked for me when I tested it.
Some days it's not worth chewing through the leather straps ...
Previous
Reply
Map
View

Click here to load this message in the networking platform