Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Support for ordering on AS
Message
 
 
To
28/03/2009 13:41:54
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01391988
Message ID:
01392010
Views:
50
I actually answered the same question by Dmitry about a week or so ago.

Re: Is GROUP_ID reserved word? Thread #1387014 Message #1387020

BTW, in both cases (VFP and SQL Server) you would have to include UPPER(Title) in the field list and used it as derived table.

>I thought SQL Server was supporting the ordering on an AS field. Can someone confirm me that this is not supported:
>
>
>DECLARE @Type Integer
>DECLARE @Status Integer
>DECLARE @NoMember Integer
>
>SET @Type=4
>SET @Status=2
>SET @NoMember=49716
>
>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)
>
>
>Basically, to have this working, I have to do this:
>
>
>DECLARE @Type Integer
>DECLARE @Status Integer
>DECLARE @NoMember Integer
>
>SET @Type=4
>SET @Status=2
>SET @NoMember=49716
>
>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(New.Titre)
>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform