Jan 2, 2004 #1 Larshg Programmer Mar 1, 2001 187 DK HI I have this SQL - that subtracts 2 dates from each other select ((sysdate -(select max(channel_time) FROM prepaid.sms_rating_transactions_v4))) from dual; I'd like the output to be number of hours and minutes Thanks Larshg
HI I have this SQL - that subtracts 2 dates from each other select ((sysdate -(select max(channel_time) FROM prepaid.sms_rating_transactions_v4))) from dual; I'd like the output to be number of hours and minutes Thanks Larshg
Jan 2, 2004 #2 dnoeth Instructor Oct 16, 2002 545 DE In ANSI SQL it's select (TimeStamp1 - TimeStamp2) hour to minute AFAIK Oracle supports Interval Expressions, too. Dieter Upvote 0 Downvote
In ANSI SQL it's select (TimeStamp1 - TimeStamp2) hour to minute AFAIK Oracle supports Interval Expressions, too. Dieter
Jan 2, 2004 Thread starter #3 Larshg Programmer Mar 1, 2001 187 DK What I want is to have the output as the number og hours and minutes between the timestamps. ex. select ((sysdate -(select max(channel_time) FROM prepaid.sms_rating_transactions_v4))) from dual; output now is 0,0066087962962963 output should be 0 hours 6 minutes Upvote 0 Downvote
What I want is to have the output as the number og hours and minutes between the timestamps. ex. select ((sysdate -(select max(channel_time) FROM prepaid.sms_rating_transactions_v4))) from dual; output now is 0,0066087962962963 output should be 0 hours 6 minutes