Challenge: Top 3 Customers
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 4. Capitolo 4
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
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?
Fantastico!
Completion tasso migliorato a 5.56
Challenge: Top 3 Customers
Scorri per mostrare il menu
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 4. Capitolo 4
single