Challenge: Bestselling Products
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 2
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Genial!
Completion tasa mejorada a 5.56
Challenge: Bestselling Products
Desliza para mostrar el menú
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 2
single