Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL not yiielding same result as Filter
Message
De
03/05/2000 09:35:45
 
 
À
02/05/2000 09:43:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00364987
Message ID:
00365542
Vues:
13
Greetings David

>If I understand you correctly, you want to find any records in BALANCE that do not have matching TYPEs in PTYPES.
SELECT * FROM balance ;
>WHERE type NOT IN (SELECT type FROM ptypes)
Yes, that'll work but its not suitable for the particular operation I'm trying to deal with. The problem with that is I'm trying to create a generic form of the query and I want to be able to use the same format whether the user is asking for matching or non matching records. Francisco put me straight with the "left join". Now it works regardless.

Thanks

Harry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform