#815

Show each product's % share of the total

Marketing wants to see each product's share of total revenue — as a percentage. For every product compute its total revenue and the percentage it makes up of the grand total across all products, rounded to two decimal places. Sort by share descending.

Expected output sample

This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.

productpct_2024_01pct_2024_02pct_2024_03
A27.040.532.4
B28.632.139.3
C27.932.639.5

Your query result will appear here