Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select Bottom 'n' From...
Message
De
24/08/1999 14:02:21
 
 
À
24/08/1999 13:43:44
Richard Hackett
Dr Dick's Software Inc
Edmonton, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00257214
Message ID:
00257227
Vues:
16
Hi Richard,

>As far as I can tell SQL-SELECT doesn't support ORDER BY ASC for TOP 'n' queries, just DESC. Is there any way to simulate BOTTOM 'n' in a VFP SQL-SELECT line such as:
SELECT TOP 'n' field1 FROM mytable WHERE field1 < lnmyvariable ORDER BY field1 DESC
This may seem like a long shot but maybe there is there a cunning function known only to UT subscribers which inverts character, date or numeric values...worth asking anyhow.

If its a numeric, you could experiment with multiplying everything by -1, then the order will be reversed.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform