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
Why not simply do something like this?
select convert(date_add('2000-01-01', interval 146 minute), time);
This returns 02:26:00
02:26:00
Or the following if you want to specify return format
select date_format(date_add('2000-01-01', interval 146 minute), '%h:%i');