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!

Converting Minutes to Hour.Minutes

yakub21Nov 12 2008 — edited Nov 12 2008
How does one convert minutes to hours.minutes as in :

with t as (
select to_date('12/11/2008 08:00:00','dd/mm/yyyy hh24:mi:ss') start_dt,
to_date('12/11/2008 15:30:00','dd/mm/yyyy hh24:mi;ss') end_dt
from dual
)
select trunc(end_dt - start_dt) * 1440) from t
/

TRUNC((END_DT-START_DT)*1440)
----------------------------------------------------
450

How do I get to generate 7.30 minutes ?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 10 2008
Added on Nov 12 2008
2 comments
2,533 views