Minutes Calculation [message #290583] |
Sun, 30 December 2007 01:32 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
sd_md_faizan
Messages: 19 Registered: February 2006 Location: Saudi Arabia
|
Junior Member |
|
|
hi,
I have the text data as follows
1) '01:50:34' i.e 1 hour, 50 Minutes and 34 Seconds,
2) '00:40:40' i.e 0 Hours, 40 Minutes and 40 Seconds
I need to convert this to average/sum hours or average miniutes or average seconds.
ex. to average minutes.
1) 110.34 => 110 Minutes and 34 Seconds.
2) 40.40 => 40 Minutes and 40 Seconds.
=> Summ as 151.14
=> Average as 75.57 (approximately)
I have done the above by using some simple calculations by using select statement. But I want to know whether there is any oracle function which converts such type of text data to Hours or Minuetes or Seconds. If any body knows please give the solution.
Thanks.
|
|
|
|
|
|
Re: Minutes Calculation [message #302911 is a reply to message #302730] |
Wed, 27 February 2008 06:00 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
sd_md_faizan
Messages: 19 Registered: February 2006 Location: Saudi Arabia
|
Junior Member |
|
|
Thanks for your response,
approximately I did the same, But I want to know whether there is any pre-difined oracle function like SUM(), AVG() etc...
Thanks,
|
|
|
|