Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting Select
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00179016
Message ID:
00179021
Vues:
26
Hi Michelle,

I think you should be able to do this with the SQL delete command:

DELETE FROM Trips WHERE trips.client_num NOT IN (SELECT client_num FROM clients)

>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
kenweber
GCom2 Solutions
Microsoft Certified Professional

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform