I am using this code for sum/addition and to multiply two values of database AMOUNT & RATE.
SELECT YEAR, COST, RATE, SUM(AMOUNT) AS ONE, ROUND(SUM(AMOUNT*RATE/100),0) AS COST
FROM DATABASE
WHERE YEAR='$YEAR'
But round value is not working
650 x 5 / 100 = 32 instead of 33
720 x 8 / 100 = 57 instead of 58
Total of COST is coming to 89 instead of 91 as i need total of round value