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:
01133767
Vues:
16
This message has been marked as a message which has helped to the initial question of the thread.
SELECT * FROM 
 ( 
   SELECT TOP 5 Video.Streaming FROM Video ORDER BY Video.Streaming DESC
 ) v5 ORDER BY Streaming 
>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.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform