Challenge: Top Sales per Region
Aufgabe
Swipe to start coding
Write a query to find the highest sale amount and corresponding employee for each region using window functions.
- Assign a row number to each sale within its region, ordering by the sale amount in descending order.
- Select the region, employee ID, and sale amount for the row with the highest sale in each region.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 4
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Suggested prompts:
Can you explain this in simpler terms?
What are some examples related to this topic?
Where can I learn more about this?
Großartig!
Completion Rate verbessert auf 4.55
Challenge: Top Sales per Region
Swipe um das Menü anzuzeigen
Aufgabe
Swipe to start coding
Write a query to find the highest sale amount and corresponding employee for each region using window functions.
- Assign a row number to each sale within its region, ordering by the sale amount in descending order.
- Select the region, employee ID, and sale amount for the row with the highest sale in each region.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 4
single