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 change days to hours

user9093700Feb 17 2010 — edited Feb 18 2010
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod

regexp_replace(NUMTODSINTERVAL ( ABS ( ( TRUNC (c.so_date)+ TO_DSINTERVAL ('0 ' || c.so_time))- ( TRUNC (a.sr_date)+ TO_DSINTERVAL ('0 ' || a.sr_time)))
, 'DAY'), '([+|-])0+(\d+)', '\1\2 days ') diff

hi above is my query i am getting days in this format

+1 days 21:25:59.000000000

i want only in 45:25:59

Edited by: user9093689 on Feb 17, 2010 5:56 PM
This post has been answered by Hoek on Feb 17 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 18 2010
Added on Feb 17 2010
7 comments
2,375 views