Abschnitt 1. Kapitel 5
single
Challenge: Multi-Step Employee Analysis
Swipe um das Menü anzuzeigen
Aufgabe
Swipe to start coding
Write a query using two CTEs to analyze employee sales performance relative to their department. The first CTE should calculate the total sales amount for each employee. The second CTE should determine the average total sales per department and select employees whose total sales exceed their department's average.
- Calculate each employee's total sales.
- Calculate the average total sales for each department.
- Select employees whose total sales are greater than their department's average.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 5
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen