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:
00793071
Views:
44
I don't see anything wrong with this query. What error do you get?

>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")
You can also rewrite it as follow (it may be faster)
SELECT taitem.ident;
       FROM taitem;
       WHERE code IN (SELECT arcode.code FROM arcode ;
	                  WHERE arcode.activity = "EA")
>VFP7 ask me about EXISTS ?
>
>Help!
>
>Thanks
>Eric
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform