Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Top 3 Customers | Advanced SQL for Data Analysis
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
SQL for Data Analysis

bookChallenge: Top 3 Customers

Tarefa

Swipe to start coding

Write a query to find the top 3 customers by total quantity purchased. Use a window function to rank customers by the sum of their purchased quantities.

  • Calculate the total quantity purchased for each customer.
  • Rank customers based on their total quantity purchased, with the highest quantity receiving rank 1.
  • Select only the top 3 customers according to this ranking.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 4. Capítulo 4
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Top 3 Customers

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Write a query to find the top 3 customers by total quantity purchased. Use a window function to rank customers by the sum of their purchased quantities.

  • Calculate the total quantity purchased for each customer.
  • Rank customers based on their total quantity purchased, with the highest quantity receiving rank 1.
  • Select only the top 3 customers according to this ranking.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 4. Capítulo 4
single

single

some-alt