SELECT ROUND(99.12,-1);
Msg 8115, Level 16, State 2, Line 1 Arithmetic overflow error converting expression to data type numeric.
This error will come when expression range is:
- 95.00 to 99.99
- 5.00 to 9.99
- 995.00 to 999.99 and so on Other than that range, it works as expected.
BUT when you execute the same query in Oracle DB , it works fine and giving the expected output.
SELECT ROUND(99.12,-1) FROM DUAL;
ans: 100
so can someone explain , why it behaves like that in sqlserver2008
Thanks in advance