CASE WHEN A=X AND B=Y THEN ... END
, , - (2 ) , : col1, col2, (col3, col4).
You need to return them separately: col1, col2, col3, col4
select
col1,
col2,
case when col3='E01089001' then (select 1 from dual) else (select 3 from dual) end,
case when col3='E01089001' then (select 2 from dual) else (select 4 from dual) end
from Table1 where col1='A0529';
source
share