I'm turning trying to pass an entire value to hh:mm
format.
So far I managed to do /60
, passing the rest to minutes and casting everything in string format so that I keep the :
in the middle. But I would need it to be in time format to be able to do calculations:
Example:
---------------------------------------------------------------
| Legajo | PromEntMin | HoraEntrada | MinutosEntrada| Entrada |
---------------------------------------------------------------
|200 | 648 | 10 | 48 | 10:48 |
---------------------------------------------------------------
|202 | 497 | 8 | 17 | 8:17 |
---------------------------------------------------------------
|203 | 596 | 9 | 56 | 9:56 |
---------------------------------------------------------------
How can I format these values in SQL?