For some reason this derived field is not coming up ok when testing it. What am I missing? I'm trying to get a ranged grouping going here.
CASE (FLOOR(DATEDIFF (DD, PS_EMPLOYMENT.CMPNY_SENIORITY_DT, "PS_EMPLOYMENT"."TERMINATION_DT")) / 365.25)
WHEN < 1 THEN 'Less then 1 year'
WHEN > 1 < 2 THEN '1 to 2 years'
WHEN > 2 THEN 'More then 2 years'
END
CASE (FLOOR(DATEDIFF (DD, PS_EMPLOYMENT.CMPNY_SENIORITY_DT, "PS_EMPLOYMENT"."TERMINATION_DT")) / 365.25)
WHEN < 1 THEN 'Less then 1 year'
WHEN > 1 < 2 THEN '1 to 2 years'
WHEN > 2 THEN 'More then 2 years'
END