Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding ALL items not ANY
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00427146
Message ID:
00427811
Views:
12
You are da man. Ed! Ed! Ed!

>
SELECT * FROM Orders ;
>  INTO CURSOR Temp ;
> WHERE OrdID IN (SELECT OrdID FROM OrdItems O1 WHERE item = 'hammer') ;
>   AND OrdID IN (SELECT OrdID From OrdItems O2 WHERE item = 'nails')
>
>I'd make sure that OrdItems had indexes on OrdID and Item.
Previous
Reply
Map
View

Click here to load this message in the networking platform