Is there a way to do this, for example:
SELECT a,b,(a+b) as ab, (ab/2000) as d FROM Table1.
The problem in the above occurs at column d, whereby SQL Server throws out the error message: Invalid Column Name ab
I tried passing ab to a function and having it compute and return the result as d but it doesn't jive.
SELECT a,b,(a+b) as ab, (ab/2000) as d FROM Table1.
The problem in the above occurs at column d, whereby SQL Server throws out the error message: Invalid Column Name ab
I tried passing ab to a function and having it compute and return the result as d but it doesn't jive.