Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Specifing a column in the where clause
Message
 
 
To
19/02/2004 19:05:13
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00879002
Message ID:
00879019
Views:
16
This message has been marked as the solution to the initial question of the thread.
>Thanks Sergey,
>Can you explain why you can't reference "sales_total" in the where clause even though it is a vaild column name?

The "sales_total" is column alias assigned with AS clause. It's SQL Server query parser limitation that column alias cannot be used in WHERE and some other clauses.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform