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!

Subtracting Dates

sliderrulesOct 1 2010 — edited Oct 1 2010
Hi

I am subtracting two dates to get the number of days in service:

trunc((((86400*(sysdate-p.effective_start_date))/60)/60)/24) "No of Days of Service",

I would like to do the same and calculate this in number of years as well?

Can anyone help with the SQL?

Thanks
This post has been answered by Frank Kulash on Oct 1 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 29 2010
Added on Oct 1 2010
4 comments
3,398 views