SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Amazon: Category Revenue Report

Unsolved

Amazon marketplace analysts monitor merchandise value across retail categories. Write a query to compute the total sales revenue generated in each product category. Include categories that have zero sales, reporting their total revenue as 0. Return `category_name` and `total_revenue` (calculated as quantity multiplied by unit_price). Sort results by `total_revenue DESC`, then by `category_name ASC` in case of ties.

SQL Query Editor (Ctrl+Enter to run)
0 characters · Valid
Canonical Solution Official

Official Solution is Hidden

Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.

Community Q&A & Discussion

Ask questions, share alternate queries, and explore solutions

0 comments
Asked By:
🏢 Amazon

Submission History

Your recent query executions and answer checks

Execution Pipeline:
FROM products
Full source dataset
10 rows total
Ready. Type a query to see live execution.
Clause: Auto-Sync · AlaSQL Engine