Zkuste
SELECT LTRIM(DATEDIFF(MINUTE, 0, TimeSpent))
FROM yourtable
Dané
| TIMESPENT |
-------------
| 00:12 |
| 01:05 |
| 10:00 |
Výstup:
| MINUTES |
-----------
| 12 |
| 65 |
| 600 |
Zde je SQLFiddle
Zkuste
SELECT LTRIM(DATEDIFF(MINUTE, 0, TimeSpent))
FROM yourtable
Dané
| TIMESPENT |
-------------
| 00:12 |
| 01:05 |
| 10:00 |
Výstup:
| MINUTES |
-----------
| 12 |
| 65 |
| 600 |
Zde je SQLFiddle