Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Computed column

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-08-02 : 08:59:08
Nagarajan writes "I am trying to refer a computed column in the where clause and I get "invalid column name". For example;

Select col1, comp_col = (Case when .....)
from table1
where comp_col < 100

How to overcome this error?

Thanks for the help!"
   

- Advertisement -