Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Order by with local view
Message
De
22/11/2021 13:10:14
 
 
À
22/11/2021 10:21:47
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01682763
Message ID:
01682774
Vues:
47
>>I would like for the positive numbers to list on top so as to go from higher to lower. Is there a way around that/this?
>>
>Add an extra field, ..., abs(fieldxy) as absval, ... order by absval descending
>
>You don't need to show that extra field anywhere, just use it for ordering.

I've never used local views, and in TSQL you can't use ORDER BY in a view, however would ORDER BY ABS(fieldxy) DESCENDING work?
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform