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

Percentage of Total by Group

Return each region's total sales and its percentage of the overall total, rounded to two decimals. Order by region.

Table schema

Sales(id INT PRIMARY KEY, region VARCHAR(10), amount INT)

Sample data

id | region | amount
1 | East | 60
2 | East | 40
3 | West | 100

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.