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

bookChallenge: Bestselling Products

Compito

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.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 2
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

Suggested prompts:

Can you explain this in simpler terms?

What are some examples related to this topic?

Where can I learn more about this?

close

bookChallenge: Bestselling Products

Scorri per mostrare il menu

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 2
single

single

some-alt