Prøv
SELECT LTRIM(DATEDIFF(MINUTE, 0, TimeSpent))
FROM yourtable
Givet
| TIMESPENT |
-------------
| 00:12 |
| 01:05 |
| 10:00 |
Output:
| MINUTES |
-----------
| 12 |
| 65 |
| 600 |
Her er SQLFiddle
Prøv
SELECT LTRIM(DATEDIFF(MINUTE, 0, TimeSpent))
FROM yourtable
Givet
| TIMESPENT |
-------------
| 00:12 |
| 01:05 |
| 10:00 |
Output:
| MINUTES |
-----------
| 12 |
| 65 |
| 600 |
Her er SQLFiddle