The only problem is that the values are not matching. To try
to describe it at little more is that I have rows with time as 00:02:16
when it is tranfered into seconds it should show 136 of whatever it is
that mysql has made a sum of. The command used is sum(fieldname) group
by the unit to which I want to group for. Hoping that it makes sense.
Try
SELECT SUM(TIME_TO_SEC( DATE_FORMAT(fieldname,'%h:%i:%s')));
or if you want to omit the hours, you can use
SELECT SUM(TIME_TO_SEC( DATE_FORMAT(fieldname,'%i:%s')));