SUM total time in SQL Server [duplicate]

if the time in hh/mm/ss then ::

SELECT studentid,studentname,
         DATEADD(ms, SUM(DATEDIFF(ms, '00:00:00.000', mytime)), '00:00:00.000') as time
    FROM
         worknote

Leave a Comment