I have a table that return minutes from a task and I\'d like to convert into hours and minutes.
my select is:
select m.mat_nome as \'Matéria\', round
CONCAT(FLOOR(minutes/60),':',LPAD(MOD(minutes,60),2,'0'))
a variation on Damir Kasipovic's code: this converts 62 minutes to '1:02'