Hola
Para retomar el tema, hice las pruebas y no tiene caso me arroja error. Pero me temo que no es por la sec_to _time, si no por el campo, ya que el error em lo arroja despues de la función date = Date (b.fecha) , si le quito la función date, la query avanza hasta = ( b.horalogoff, b.horalogin.......
Cita: Error Code : 1064
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '( b.fecha ) , SEC_TO_TIME( SUM( TIME_TO_SEC( TIMEDIFF( b.horalo
Cita: Error Code : 1064
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '( b.horalogoff, b.horalogin ) ) ) ) TIEMPO, TIME( MIN( b.horalo
he revisado lso campos pero no veo nada anormal (según yo)
a ver si continúan dandome una mano con esto