Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to structure a SQL Select command
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01180237
Message ID:
01180259
Views:
16
I see where you're going with that. I had thought about a subselect, but hadn't thought about your approach (don't know why - I should have!). I'll give that a whirl. Thanks.

>Hi Russell,
>
>Try (not tested)
>
>SELECT *
>  FROM mytable mt1
>  WHERE task = lcTask
>    AND NOT EXISTS ( SELECT * FROM mytable
> 		       WHERE ArtID = mt1.ArtID
>			 AND date > mt1.date)
>
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Previous
Reply
Map
View

Click here to load this message in the networking platform