Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Most Popular Product Category | Subqueries in E-commerce Analytics
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Subqueries in SQL

bookChallenge: Most Popular Product Category

Tâche

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

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 6
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Most Popular Product Category

Glissez pour afficher le menu

Tâche

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

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 6
single

single

some-alt