Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting TOP 5 but in reverse order
Message
 
À
05/07/2006 00:30:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01133722
Message ID:
01133730
Vues:
16
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform