My work is done properly all good with this query
1
2
3
4
|
SELECT name
, CONVERT (DATETIME, DATEADD(s, SUM (( DATEPART(hh, Timer) * 3600 )
+ ( DATEPART(mi, Timer) * 60 ) + DATEPART(ss, Timer)), 0)) AS total_time
FROM Project_To_Done Groupbyname
|
but the result is shown like this
Ali 1900-01-01 00:00:05.000
ddd 1900-01-01 00:22:22.000
I want time like 00:22:22 or 00:00:05
How can i do this?