Challenge: Bestselling Products
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 2
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
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
Sveip for å vise menyen
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 2
single