Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Segment Sales Data | Aggregations for KPIs
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
SQL for Business Intelligence Analysts

bookChallenge: Segment Sales Data

Tarea

Swipe to start coding

Write two SQL queries using the existing sales table to analyze sales performance by product and by customer.

  • The first query must return each product_id along with the total sales amount for that product. Use SUM(total_amount) and group by product_id.
  • The second query must return each customer_id along with the number of orders placed by that customer. Use COUNT(sale_id) and group by customer_id.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 4
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

close

bookChallenge: Segment Sales Data

Desliza para mostrar el menú

Tarea

Swipe to start coding

Write two SQL queries using the existing sales table to analyze sales performance by product and by customer.

  • The first query must return each product_id along with the total sales amount for that product. Use SUM(total_amount) and group by product_id.
  • The second query must return each customer_id along with the number of orders placed by that customer. Use COUNT(sale_id) and group by customer_id.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 4
single

single

some-alt