my data in table is like this
ds_start_time -> 09:00:00 , ds_end_time-> 09:30:00
ds_start_time -> 09:00:00 , ds_end_time-> 10:30:00
ds_start_time -> 10:00:00 , ds_end_time-> 10:30:00
ds_start_time -> 09:30:00 , ds_end_time-> 10:30:00
i want the difference of date and sum that difference
for that i put this in query
SELECT SUM(TIMEDIFF(ds_end_time,ds_start_time))
FROM www
WHERE abc='123'........
but at the end i am getting 2058800.000000 . From this how can i get total hrs mins and sec.
Or any other method .Plz suggest.
It’s easy to do this in MySQL if you know how:
Note that if there are many rows that have
abc = '123'then you will probably get double counts, in that cause you migth want to try: