Probably a stupid question...
I'm using a Transform Data Task to pump the results of a query out to an Excel spreadsheet. What I want to do is essentially this pseudocode:
If FieldA = -1 Then
Return TextStringA
Else If FieldB = -1 Then
Return TextStringB
Else
Return TextStringC
Now if I was using Access I'd use the IIF function in my query to do this but if seems the SQL in DTS doesn't support IIF. Is there are alternative I can use?
I'm using a Transform Data Task to pump the results of a query out to an Excel spreadsheet. What I want to do is essentially this pseudocode:
If FieldA = -1 Then
Return TextStringA
Else If FieldB = -1 Then
Return TextStringB
Else
Return TextStringC
Now if I was using Access I'd use the IIF function in my query to do this but if seems the SQL in DTS doesn't support IIF. Is there are alternative I can use?