Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interview questions
Message
 
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01380550
Message ID:
01401958
Views:
78
>As a follow-up, the "why" is becuase the result (with the alias name) hasn't been created.....
>
>That's why you can use expression aliases in an ORDER BY....becuase the result set has already been created (sort of), and the database engine can refer to any alias names. But prior to that (i.e. in a GROUP BY), it's too early to use aliases.

One more example of the exact same problem, BTW:

http://forums.asp.net/p/1426450/3187277.aspx#3187277
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