update table1 as a set a.totalInstallmentAmount = ( select SUM(b.credit) as credit from table2 b where b.ID= a.ID)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)