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

bookChallenge: Bestselling Products

Aufgabe

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.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 2
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

close

bookChallenge: Bestselling Products

Swipe um das Menü anzuzeigen

Aufgabe

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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 2
single

single

some-alt