Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Order by with local view
Message
From
22/11/2021 15:23:57
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
22/11/2021 13:10:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01682763
Message ID:
01682781
Views:
40
>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform