sum of Times in SQL

Posted by LIX on Stack Overflow See other posts from Stack Overflow or by LIX
Published on 2010-04-07T08:55:24Z Indexed on 2010/04/07 9:13 UTC
Read the original article Hit count: 237

Filed under:
|

Hello all, I have some records like this:

ID       Personel_Code        Time 
---      -------------       ------ 
1         0011                05:50
3         0011                20:12
4         0012                00:50

I want to have the sum of times for each person. in this example I want to have the result like this :

Personel_Code          Time
-------------          -----
 0011                  26:02
 0012                   00:50

Thank you.

© Stack Overflow or respective owner

Related posts about sql

Related posts about query