Challenge: Top 3 Customers
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 4. Chapitre 4
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Suggested prompts:
Can you explain that in simpler terms?
What are the main benefits of this approach?
Are there any common mistakes to avoid with this?
Génial!
Completion taux amélioré à 5.56
Challenge: Top 3 Customers
Glissez pour afficher le menu
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 4. Chapitre 4
single