Can someone help me understand why the first one does not work and the second one works
SELECT CONVERT(numeric(11, 2), NULLIF('4702137480', '')) / 100.00.
Error Message:Msg 8115, Level 16, State 8, Line 1
Arithmetic overflow error converting varchar to data type numeric.SELECT CONVERT(numeric(12, 2), NULLIF('4702137480', '')) / 100.00.
Result 47021374.80000000
My understanding was 11, 2 meant a total of 11 and the last two are after the decimal place. As the example only has 10 digits I don't understand why it does not work.