Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use select... where EXISTS ... ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00793069
Message ID:
00793106
Vues:
41
Eric,

I prefer to use an INNER JOIN instead of EXISTS you can use multiple conditions in the JOIN clause like this:
SELECT taitem.ident;
       FROM taitem;
       inner join arcode ;
         on arcode.code = taitem.code AND ;
       	    arcode.activity = "EA"
>What is wrong with this :
>SELECT taitem.ident;
> FROM taitem;
> WHERE EXISTS (SELECT arcode.code FROM arcode ;
> WHERE taitem.code = arcode.code AND;
> arcode.activity = "EA")
>
>VFP7 ask me about EXISTS ?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform