Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Negative symbol remove

959406Jul 23 2020 — edited Jul 23 2020

Hi All need to remove the negative sign

with sqltmp as (select to_char('-0.004','$999,999,999.99') a from dual              

  union all                 select to_char('-0.024','$999,999,999.99') a from dual              

  union all                 select to_char('-0.314','$999,999,999.99') a from dual)          

      select case when a='-$.00' then '$.00'     else a     end final from sqltmp

output  :-$.00 to $.00

how to remove the negative sign on this

Comments
Post Details
Added on Jul 23 2020
9 comments
1,623 views