Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interview questions
Message
 
 
À
25/05/2009 12:57:41
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01380550
Message ID:
01401958
Vues:
77
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform