Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting TOP 5 but in reverse order
Message
 
To
05/07/2006 10:35:20
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01133722
Message ID:
01134054
Views:
19
Actually the one suggested by Sergey in message#1133767 is different from mine. His one is faster and better because it gets the resulting records directly from the subquery result without running the "IN" filtering operation against the master table.

Ben


>>
>>SELECT Streaming FORM Video Where Streaming IN (SELECT TOP 5 Streaming FROM Video ORDER BY Streaming DESC) ORDER BY Streaming
>>
>
>Thanks, this seems to work very well.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform