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!

Calculating hours and minutes

user545194Oct 20 2011 — edited Oct 20 2011
Hi!

In our database we have 2 fields: start_time and end_time (varchar2).
Start_time       End_time
------------------------------------
10:00              12:55
07:55              09:00              
We need to calculate the elapsed time and show the result i.e. 2h55m.

There might be a problem when calculating with a leading 0?

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 17 2011
Added on Oct 20 2011
4 comments
264 views