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!

how to convert negative value in 0

Taj.Apr 28 2010 — edited Apr 28 2010
dear all,

there is a query

column
due date
late fee rate

value of column
1. due date ======= 11-may-10
2. late fee rate ===== 5

select trunc(sysdate) - trunc(due_date) * late_fee_rate from dual;

as per the above query and value i am getting negative value because due date is on 11-may-10.
is there any function or something which convert negative value in '0'.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 26 2010
Added on Apr 28 2010
4 comments
2,804 views