Hello, everyone,
I encountered the error :"Arithmetic overflow error converting express to data type int" when updating a table as follows:
UPDATEt1
SETt1.Count1 = t2.Count2
FROMTable1t1
JOINTable2 t2
ONt2.Id= t1.Id
t1.Count1's data type: INT
t2.Count2's data type: BIGINT
I understand that by changing t1.Count1's data type to BIGINT would solve the problem.
My question is -- Is there a way to fix this problem without changing the t1.Count1 data type to BIGINT?
Your help is much appreciate it!