Is there anyway to correctly write a SQL statement for a case statment within a case statement? Below is what I have and it is not working:
'Task' =
CASE WHEN
(
CASE
WHEN NOT ia.[EmployeeGroup] IS NULL THEN ia.[EmployeeGroup]
ELSE ec.[Employee Type]
END) = 'Contractor' then 'Contractor' else 'Hire Employee' End,
'Task' =
CASE WHEN
(
CASE
WHEN NOT ia.[EmployeeGroup] IS NULL THEN ia.[EmployeeGroup]
ELSE ec.[Employee Type]
END) = 'Contractor' then 'Contractor' else 'Hire Employee' End,