I have a problem understanding how/why T-SQL refuses the following line within a View :
Error:
It seems to be that, unlike when processing the same code in Access, it cannot, or will not, resolve expressions prior to passing the results into a function.
I'd be grateful for a better understanding of why this is so?
Code:
IIF([dbo].[tblShift].[E_Status]='C',IIF([dbo].[Employees].[Pending],'P',IIF([dbo].[Employees].[Qualified],'Q','N')),[dbo].[tblShift].[E_Status]) AS [EmpType]
Code:
Error in list of function arguments: '=' not recognized. Unable to parse query text.
I'd be grateful for a better understanding of why this is so?
Comment