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