Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> *DECODE* to implement IF condition???
HI All,
I have a conditional display situation as below:
if T1.Col4 = 'ABC'
{ if ( (T1.date1 < sysadate) && (T1.date2 > sysdate) ) { DISPLAY 'ABC YES';
}
else { DISPLAY 'ABC NO';
}
{ if ( (T1.date1 < sysadate) && (T1.date2 > sysdate) ) { DISPLAY 'DEF YES';
}
else { DISPLAY 'DEF NO';
}
Can this condition be implemented in a select statement with DECODE... that looks like
Any clues on how to approach this?
Thanks folks!
Cheers,
Vamshi Reddy
Received on Wed Oct 31 2001 - 00:16:17 CST