I am new to the site and I have a question regarding some code I have in Access form that I am redoing in SQL Server 2008 and it has SUM, IIF, and IsNumeric all in one line and I am confused as to how to rewrite this in SQL.
Sum([Employee COUNT]*IIf(IsNull([2011]),0,CDbl([2011]))*IIf(IsNumeric([Length]),CDbl([Length]),0)) AS Cost
I believe this will do what you need: