Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: High-Volume Customers | Aggregating and Grouping Data
SQL for Data Analysis

bookChallenge: High-Volume Customers

Tarea

Swipe to start coding

Write a query to list the customer_id and the total quantity purchased for each customer, but only include those customers whose total quantity purchased is greater than 5.

  • Select the customer_id and the sum of quantity as total_quantity from the sales table.
  • Group the results by customer_id.
  • Only include customers whose total quantity purchased is greater than 5.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 3
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

Suggested prompts:

Can you explain this in simpler terms?

Can you give me an example?

What are the next steps I should take?

close

bookChallenge: High-Volume Customers

Desliza para mostrar el menú

Tarea

Swipe to start coding

Write a query to list the customer_id and the total quantity purchased for each customer, but only include those customers whose total quantity purchased is greater than 5.

  • Select the customer_id and the sum of quantity as total_quantity from the sales table.
  • Group the results by customer_id.
  • Only include customers whose total quantity purchased is greater than 5.

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 2. Capítulo 3
single

single

some-alt