Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: *DECODE* to implement IF condition???
how about...
select decode(col4,
'ABC', case when date1 < sysdate and date2 > sysdate
then 'DEF YES' else 'DEF NO' end,
'DEF', case when date1 < sysdate and date2 > sysdate
then 'DEF YES' else 'DEF NO' end,
Richard Received on Wed Oct 31 2001 - 00:34:34 CST