Prova
SELECT LTRIM(DATEDIFF(MINUTE, 0, TimeSpent))
FROM yourtable
Givet
| TIMESPENT |
-------------
| 00:12 |
| 01:05 |
| 10:00 |
Utdata:
| MINUTES |
-----------
| 12 |
| 65 |
| 600 |
Här är SQLFiddle
Prova
SELECT LTRIM(DATEDIFF(MINUTE, 0, TimeSpent))
FROM yourtable
Givet
| TIMESPENT |
-------------
| 00:12 |
| 01:05 |
| 10:00 |
Utdata:
| MINUTES |
-----------
| 12 |
| 65 |
| 600 |
Här är SQLFiddle