Challenge: Most Popular Product Category
Task
Swipe to start coding
Write a query to find the product category with the highest total quantity sold. Do not use subqueries in the FROM clause. Use subqueries only in the WHERE clause or similar constructs to complete this challenge.
- Aggregate the total quantity sold for each product category.
- Identify the maximum total quantity among all categories using a subquery in the WHERE clause.
- Select the category (or categories, in case of a tie) whose total quantity matches this maximum.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 6
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 5.56
Challenge: Most Popular Product Category
Swipe to show menu
Task
Swipe to start coding
Write a query to find the product category with the highest total quantity sold. Do not use subqueries in the FROM clause. Use subqueries only in the WHERE clause or similar constructs to complete this challenge.
- Aggregate the total quantity sold for each product category.
- Identify the maximum total quantity among all categories using a subquery in the WHERE clause.
- Select the category (or categories, in case of a tie) whose total quantity matches this maximum.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 6
single