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:
01436443
Vues:
40
>>I'm not sure what is so special about it? SQL Server allows expressions in ORDER BY clause.
>
>BOL2005 still only lists this as the possible order_by_expression:
>
>order_by_expression
>Specifies a column on which to sort. A sort column can be specified as a name or column alias, which can be qualified by the table name, or an expression. Multiple sort columns can be specified. The sequence of the sort columns in the ORDER BY clause defines the organization of the sorted result set.

>
>Absolutely no indication that CASE is a possibility.

You missed "or an expression" part. Anyway I learned it from Mike Levy here on UT not from BOL. :)
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform