decode for EXISTS and NOT EXISTS conditions
Kum KApr 13 2011 — edited Apr 13 2011Hello all,
I need to use either EXISTS or NOT EXISTS before the subquery based on the situation. I have written a test query but its erroring out. Please check it.
select 1 from dual
where DECODE('A','A',EXISTS ,NOT EXISTS)
(select ename from EMP
where ename = 'SCOTT')
Thank You
KK