You can also implement your logic as SELECT DECODE(SIGN(in_value-60), -1, TO_CHAR(in_value)||' minutes', TO_CHAR(in_value/60, '9.99')||' hours') FROM dual /
HTH Raj ______________________________________________________ Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com Any opinion expressed here is personal and doesn't reflect that of ESPN Inc. QOTD: Any clod can have facts, but having an opinion is an art! -----Original Message----- Sent: Monday, May 20, 2002 11:38 AM To: Multiple recipients of list ORACLE-L Robert, That won't work. Decode works like a switch statement. If condition 1 then value 1. You can't imbed logic operators therein. DickG.
*********************************************************************2 This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you. *********************************************************************2