"SELECT at.codigoTurma, "
"ADDTIME(t.horaInicioCurso, '00:01:00'), "
"t.toleranciaCurso, "
"t.horaFinalCurso "
"FROM AlunosTurmas at "
"INNER JOIN Turmas t "
"ON t.codigoTurma = at.codigoTurma "
"WHERE at.matriculaAluno = :matricula "
"ORDER BY t.horaInicioCurso"
I would like to use the t.toleranciaCurso
field, in the ADDTIME
function, instead of the minutes.
t.tolerancia(INT), t.horaInicioCurso(TIME).
ADDTIME(t.horaInicioCurso, '00:' + t.toleranciaCurso + ':00') // soma apenas segundos