Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Order by with local view
Message
De
22/11/2021 15:23:57
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
22/11/2021 13:10:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01682763
Message ID:
01682781
Vues:
41
>>>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?

Um... a view? Haven't used that since... dunno, 2008 or 2004, and even then it was inherited stuff. Why'd anyone use views when we have SPT or cursoradaptors.

So yeah, I automatically translated this as being a SQL question. The word „view“ fell right on my blind spot :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform