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 sum time/Hours through SQL?

Kam__apexFeb 25 2015 — edited Feb 25 2015

Dear Friends

I have a table sh_detail and there are three fields hours1,hours2,hours3. all fields are varchar2 type.

data is like

hours1          hours2          hours3            total

02:45              00:18           01:25

00:38              01:45           00:00

02:15              02:00           00:15   

1. I want to add above three fields in total column

2. and want to sum every fields like select sum(hours1) from sh_detail.

Please help i will be thankful.

Regards.

This post has been answered by odie_63 on Feb 25 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 25 2015
Added on Feb 25 2015
6 comments
7,780 views