Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select where not exists
Message
De
16/12/2004 16:19:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
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:
00969843
Vues:
7
>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

This is easily solved with a subquery.
select * from TableA where KeyField not in (select KeyField from TableB)
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform