Quando executo este comando com SUM()
SELECT COUNT(*) AS [Records], SUM(t.Amount) AS [Total]
FROM dbo.t1 AS t
WHERE t.Id > 0
AND t.Id < 101;
Estou entendendo,
Arithmetic overflow error converting expression to data type int.
Alguma idéia de qual é a causa disso?
Estou apenas seguindo as instruções nesta resposta .
CONVERT()
. Lindo.