Decode Function Help [message #333476] |
Fri, 11 July 2008 17:39  |
bhagwan_singh
Messages: 3 Registered: July 2008
|
Junior Member |
|
|
Hi all,
I am trying to get a logical expression that has 3 possible outcomes.
The example is if the difference from Last Updated and Created date is less than 24 hours, then display as 24, if between 24 and 48 hours, display as 48, and if greater than 48, display as 48+.
I have figured out how to get less than 24 hours, to display 24, and greater than 24 to display 24+, but have not found a way to have 3 possible outputs using a single DECODE function.
Can anyone help me on this?
Thanks,
BS
|
|
|
|
|
|
Re: Decode Function Help [message #333535 is a reply to message #333478] |
Sat, 12 July 2008 04:51   |
pablolee
Messages: 2882 Registered: May 2007 Location: Scotland
|
Senior Member |
|
|
bhagwan_singh wrote on Fri, 11 July 2008 23:59 | Can you write that sql for me please?Iam a newbie here
|
Short answer? No.
I'm not here to do your work for you. I will happily help you if you put in some effort though. Give it a try, post what you tried and we can assist you further.
|
|
|
|
|
|