I have a number of queries against a SQL Server 7.0 database that make use of CASE statements - creating additional columns in the result set according to conditions (i.e. Company_Type, Entry_Date, etc.) I am able to use the resultant columns in the ORDER BY clause but when I attempt to use one of these fields in the WHERE condition I am returned a message indicating that the field does not exist.
Seeing as I am able to use these fields in the ORDER BY clause I would have thought that I would be able to use them in the WHERE condition.
Can anyone tell me if this is achievable ?
Thanks in advance,
Steve
Seeing as I am able to use these fields in the ORDER BY clause I would have thought that I would be able to use them in the WHERE condition.
Can anyone tell me if this is achievable ?
Thanks in advance,
Steve