Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Support for ordering on AS
Message
 
 
À
28/03/2009 13:41:54
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01391988
Message ID:
01392241
Vues:
56
Michel,

I didn't see anyone suggest this yet.
...
   order by 3 -- title
For the ORDER BY clause you can use the column number. You can not use the column number in the GROUP BY clause.

>I thought SQL Server was supporting the ordering on an AS field. Can someone confirm me that this is not supported:
>
>
>
>SELECT [New].[Numero] AS FTNumero,New.AddDate,New.Titre AS Title,New.Numero,New.ModDate,New.Url
>  FROM [New]
>   WHERE New.Type=@Type AND New.Status=@Status AND New.NoMember=@NoMember
>   ORDER BY UPPER(Title)
>
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform