[quote author=Dusk_Knight link=board=9;threadid=9392;start=0#msg85149 date=1088116825]
this is what i found works
Code:
mysql> select time_to_sec(end) from timetest; 60780
mysql> select time_to_sec(start) from timetest; 52920
mysql> select 60780-52920; 7860
mysql> select sec_to_time('7860'); 02:11:00
note: start: 14:42:00 and end: 16:43:00
[/quote]
Code:
select sec_to_time(sum((time_to_sec(end) - time_to_sec(start)))) from timetest;
That way you can have multiple rows and it adds all the rows.
Bookmarks