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 get the difference of dates in days

779320Apr 13 2011 — edited Apr 13 2011
Hi friends,

how to get the difference of dates between two dates exactly

date1-date2 in days exactly.... shouyld be rounded of to nearest value..

and should display integer only i mean positive integer
select round ((sysdate)-to_date(date_start)),date_start as days from per_periods_of_service

this is giving result in negative also
This post has been answered by Frank Kulash on Apr 13 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 11 2011
Added on Apr 13 2011
3 comments
693 views