Create table Loan
(
LoanID Int,
LoanAmount Decimal(5,2)
)
Select * from Loan
Insert Into Loan(LoanID, LoanAmount)
Values (1, 1555), (2, 7500), (3, 2455), (4, 8630), (5, 5685)
I'm not able to insert values into the table with data type Decimal(5,2). It throws an error
Arithmetic overflow error converting int to data type numeric. The statement has been terminated.
If I increase the precision value it works.
Can someone help out?
Thank you