Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ORDER BY CASE
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
01436398
Message ID:
01436419
Vues:
39
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform