I have had no success including IIF expressions in any select statement that I try. I am using Sql Server 7
Here is a simple example
SELECT WkrBranchID, CltID, DayNum, IIf(WkrBranchID = 'A57', 'Baltimore','Other') as City
FROM Timecards
This statement produces this error
Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near '='.
Basically any function I try in the first part of the IIF statement fails.
Any advice would be greatly appreciated
Here is a simple example
SELECT WkrBranchID, CltID, DayNum, IIf(WkrBranchID = 'A57', 'Baltimore','Other') as City
FROM Timecards
This statement produces this error
Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near '='.
Basically any function I try in the first part of the IIF statement fails.
Any advice would be greatly appreciated