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

Pareto Cumulative Share

Rank products by revenue (highest first) and return each product's revenue and its cumulative share of total revenue as a percentage rounded to two decimals.

Table schema

Sales(product VARCHAR(20) PRIMARY KEY, revenue INT)

Sample data

product | revenue
A | 50
B | 30
C | 20

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.