Challenge: Bestselling Products
Tehtävä
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 2
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Mahtavaa!
Completion arvosana parantunut arvoon 5.56
Challenge: Bestselling Products
Pyyhkäise näyttääksesi valikon
Tehtävä
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 2
single