Ver originalSELECT SEC_TO_TIME(AVG(`tiem_total`)) as tiempot, fec_med, count(tiem_total) as cuentas FROM for_tie_te WHERE (fec_med BETWEEN '2012-11-01' AND '2012-11-31') AND (id_franquicia='0') GROUP BY fec_med