Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

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.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.