and this is the MySQL Query -
UPDATE loan_accounts SET `Int_Rate` = TRUNCATE(`Int_Rate`*0.5/100+`Int_Rate`,2) WHERE `Loan_Amount`>400000;
Above query is not updating the table by increasing the interest rate by 0.5% for all the loans for which the loan amount is more than 400000.
Kindly help me in finding my mistake.
Data Type of Int_Rate is DECIMAL(7,2) I have to use this format only, due to this I used TRUNCATE function

Int_Rate? Maybe dividing it by 2 and then by 100 is resulting in a value of 0, and then you're just adding the original value back to that 0?update loan_accounts set int_rate = int_rate + 0.5 where loan_amount > 400000should do it