Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting TOP 5 but in reverse order
Message
 
To
05/07/2006 00:30:19
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:
01133730
Views:
15
This message has been marked as the solution to the initial question of the thread.
How about:
SELECT Streaming FORM Video Where Streaming IN (SELECT TOP 5 Streaming FROM Video ORDER BY Streaming DESC) ORDER BY Streaming
Ben


>I have the following SQL:
>
>
>SELECT TOP 5 Video.Streaming FROM Video ORDER BY Video.Streaming DESC
>
>
>Those represents the exact five records I want. But, in those five records, I need them in reverse order. I do not want to apply a reverse looping where I would show the data because I would like to have the data ready in that order from the SQL result.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform