No. Instead, use a case statement. Same functionality, different syntax.
Ex:
[tt]
Select Col1,
Col2,
Case When This = That Then Col3 Else Col4 End As ColumnAlias
[/tt]
-George
Microsoft SQL Server MVP My Blogs SQLCop twitter
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.