Calculate the SUM of the Column which has Time DataType:

前端 未结 5 1103
无人及你
无人及你 2021-01-17 04:37

I want to calculate the Sum of the Field which has Time DataType.

My Table is Below:

  TableA:

            TotalTime
          -------------
                


        
5条回答
  •  鱼传尺愫
    2021-01-17 05:14

    It would be a tad longwinded, but if you wanted to avoid the day rollover but you could split the second TIME into constituent datepart()'s and then add those on? (even display as a varchar if it's necessary to have an hour value greater than 24.

提交回复
热议问题