Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IN or NOT IN (causes C5)
Message
From
17/03/2004 14:49:08
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00887116
Message ID:
00887218
Views:
16
>Chris,
>
>Try
SELECT OrderID FROM Orders ;
>  WHERE (vp_ItemID < 0 AND  Orders.OrderID NOT IN ;
>           (SELECT OrderID FROM LineItems ;
>               WHERE LineItems.ItemID = ABS(?vp_ItemID)))  ;
>	OR ;
>  	(vp_ItemID >= 0 AND Orders.OrderID IN ;
>           (SELECT OrderID FROM LineItems ;
>    	     WHERE LineItems.ItemID = ?vp_ItemID))
>
Thanks. After a little shoehorning, it worked. Any ideas why the other version C5'ed?

Chris.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform