SQL> select decode(dummy,'X',0,1) result from dual;
RESULT
----------
0
SQL> select to_char(decode(dummy,'X',0,1),'099.99') result from dual;
RESULT
-------
000.00
SQL>
Beware of false knowledge; it is more dangerous than ignorance. ~George Bernard Shaw
Consultant Developer/Analyst Oracle, Forms, Reports & PL/SQL (Windows)
Author and Sole Proprietor of: Emu Products Plus
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.