Challenge: Bestselling Products
Opgave
Swipe to start coding
Write a query to list each product_id and the total quantity sold, ordered by quantity descending.
- Select
product_idand the sum ofquantityfrom thesalestable. - Group the results by
product_id. - Order the results by the total quantity in descending order.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 2
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Suggested prompts:
Can you explain this in simpler terms?
What are some examples related to this topic?
Where can I learn more about this?
Fantastisk!
Completion rate forbedret til 5.56
Challenge: Bestselling Products
Stryg for at vise menuen
Opgave
Swipe to start coding
Write a query to list each product_id and the total quantity sold, ordered by quantity descending.
- Select
product_idand the sum ofquantityfrom thesalestable. - Group the results by
product_id. - Order the results by the total quantity in descending order.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 2
single