Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Bestselling Products | Aggregating and Grouping Data
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
SQL for Data Analysis

bookChallenge: Bestselling Products

Tâche

Swipe to start coding

Write a query to list each product_id and the total quantity sold, ordered by quantity descending.

  • Select product_id and the sum of quantity from the sales table.
  • Group the results by product_id.
  • Order the results by the total quantity in descending order.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 2
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

close

bookChallenge: Bestselling Products

Glissez pour afficher le menu

Tâche

Swipe to start coding

Write a query to list each product_id and the total quantity sold, ordered by quantity descending.

  • Select product_id and the sum of quantity from the sales table.
  • Group the results by product_id.
  • Order the results by the total quantity in descending order.

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 2. Chapitre 2
single

single

some-alt