Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select where not exists
Message
 
À
16/12/2004 21:50:10
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00969838
Message ID:
00969923
Vues:
15
Yes, I was trying both the 'NOT EXISTS' and the 'IN' method but I was seriously fooled because I was testing it on a view (buffered) because VFP 'SELECT's from the base and not the buffer I was not getting the results I had expected.

>Hi geoff,
>
>Amazingly noone mentioned the obvious.
>
>SELECT * FROM a WHERE NOT EXISTS(SELECT * FROM b WHERE a.Fk = a.pk)
>
>Walter,
>
>>Hi
>>
>>I know I've seen this somewhere but cant seem to find it now I need it.
>>
>>How do I select records from table A that do not exist in table B?
>>
>>regards
>>Geoff Scott
May all your weeds be wildflowers
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform