Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

How to resolve the arithmetic overflow error converting expression to data type int.

Asked by Elonjigar Oct 3, 2022 1.8K views 1 answer
Share

About this question

 When I run this command with SUM()

SELECT COUNT(*) AS [Records], SUM(t.Amount) AS [Total]

FROM   dbo.t1 AS t

WHERE  t.Id > 0

       AND t.Id < 101>

I'm getting,

Arithmetic overflow error converting expression to data type int.

Any idea on what is the cause of it?


Your answer

1 Answer

More SQL Server discussions