SQL Server : Arithmetic overflow error converting expression to data type int

前端 未结 6 1466
说谎
说谎 2020-12-29 18:17

I\'m getting this error

msg 8115, level 16, state 2, line 18
Arithmetic overflow error converting expression to data type int.

6条回答
  •  感情败类
    2020-12-29 18:37

    Is the problem with SUM(billableDuration)? To find out, try commenting out that line and see if it works.

    It could be that the sum is exceeding the maximum int. If so, try replacing it with SUM(CAST(billableDuration AS BIGINT)).

提交回复
热议问题