Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Conditions (SQL 6.5)
Message
From
28/09/1999 10:56:03
 
 
To
21/09/1999 14:49:08
Dave Sonier
Technologies Nter inc.
Gatineau, Quebec, Canada
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00267277
Message ID:
00269938
Views:
18
>Hi,
>
>Somebody knows if it is possible to do a condition with an alias column ???
>
>Here's a sample:
>
>select A_NO_AN = BDD.NO_AN from budg_dem_det bdd where A_NO_AN = 1999
>
>I got this error message:
>Msg 207, Level 16, State 2
>Invalid column name 'A_NO_AN'.

If you're assigning the value to a variable, you need to start A_NO_AN as @A_NO_AN. If you want a column named A_NO_AN try:

BDD.NO_AN "A_NO_AN"
from budg_dem_det bdd
where A_NO_AN = 1999
Previous
Reply
Map
View

Click here to load this message in the networking platform