Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ORDER BY CASE
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
01436398
Message ID:
01436419
Views:
35
>>>Works in 2008 too, but as Naomi, I'm not sure what you mean?
>>>You just tell us that this is possible?
>>
>>Hi Boris,
>>
>>I forgot what technique would we use to dynamically control the sort order (DESC or ASC) ?
>
>
>:-)
>NO WAY!
>ASC or DESC must be AFTER the CASE and it couldn't be used in CASE.

Here is a way with double case - I knew I read it before

http://jingyang.spaces.live.com/blog/cns!CC21A118B1B5250!223.entry
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform