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?