Probeer
SELECT LTRIM(DATEDIFF(MINUTE, 0, TimeSpent))
FROM yourtable
Gegeven
| TIMESPENT |
-------------
| 00:12 |
| 01:05 |
| 10:00 |
Uitgang:
| MINUTES |
-----------
| 12 |
| 65 |
| 600 |
Hier is SQLFiddle
Probeer
SELECT LTRIM(DATEDIFF(MINUTE, 0, TimeSpent))
FROM yourtable
Gegeven
| TIMESPENT |
-------------
| 00:12 |
| 01:05 |
| 10:00 |
Uitgang:
| MINUTES |
-----------
| 12 |
| 65 |
| 600 |
Hier is SQLFiddle