Interest Calculation
Return each account's annual interest (balance * rate_pct / 100) rounded to two decimals. Order by id.
Table schema
Accounts(id INT PRIMARY KEY, balance INT, rate_pct INT)Sample data
id | balance | rate_pct
1 | 1000 | 5
2 | 2500 | 4
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.