I am trying to create a command in crystal with the following and I keep getting errors...somethin about an interval qualifier at the end of the statement. Any ideas??
SELECT *
FROM KCMS.FCT_WEK_LVL_COU
WHERE
CASE
WHEN rpt_cd in ('58','59','60','62','63') Then 'LCM Themed'
WHEN rpt_cd in ('21','22','23','25','26','27') Then 'Kroger Personal Finance'
WHEN rpt_cd in ('44','45','46','48','51','53') Then 'Corporate Programs'
ELSE 'Other'
END;
Thanks!
SELECT *
FROM KCMS.FCT_WEK_LVL_COU
WHERE
CASE
WHEN rpt_cd in ('58','59','60','62','63') Then 'LCM Themed'
WHEN rpt_cd in ('21','22','23','25','26','27') Then 'Kroger Personal Finance'
WHEN rpt_cd in ('44','45','46','48','51','53') Then 'Corporate Programs'
ELSE 'Other'
END;
Thanks!