Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting Select
Message
From
22/01/1999 12:21:50
 
 
To
22/01/1999 12:19:21
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00179016
Message ID:
00179026
Views:
32
>>I got a feeling this isn't possible, but I thought I'd ask just in case. I want to do something like this:
>>
>>SELECT trips
>>DELETE ALL FOR trips.client_num NOT IN (SELECT client_num FROM clients)
>>
>>Basically, there's a lot of orphaned trips in the table and I want to clear them out. Is there any way to do that short of scanning through the trips table and looking up each client_num?
>>
>>Thanks,
>>
>>-Michelle
>
>You may use DELETE-SQL:
>DELETE From Trips Where trips.client_num NOT IN (SELECT client_num FROM clients)

That looks familiar... :) As I just told Ken, I didn't even realize such a thing existed.

Thanks,

-Michelle
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform