I have a condition in which I need to use multiple parameters in the where clause using the conditional operator. I have written the following query and in this condition, I cannot use in clause. Kindly guide me with how can I return multiple parameters from case clause.
select *
from CARDIMPORT
where STATUS = CASE
WHEN $P{status} = ''
THEN 'E'
ELSE $P{status}
END
When the STATUS is null, I want to show the records of from all the status, that are 'E', 'I', 'A'