Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use select... where EXISTS ... ?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00793069
Message ID:
00793106
Views:
42
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
Previous
Reply
Map
View

Click here to load this message in the networking platform