Challenge: Analyze Trends with Window Functions
Tâche
Swipe to start coding
Write SQL queries using window functions to analyze trends in the provided sales and employee performance data.
- Calculate the running total of sales amount by sale date.
- Calculate the 3-day moving average of sales amount by sale date.
- For each employee, calculate their running total of sales amount over time.
- For each employee, calculate a 2-period moving average of their sales achieved from performance reviews.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 3. Chapitre 2
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
Génial!
Completion taux amélioré à 5.56
Challenge: Analyze Trends with Window Functions
Glissez pour afficher le menu
Tâche
Swipe to start coding
Write SQL queries using window functions to analyze trends in the provided sales and employee performance data.
- Calculate the running total of sales amount by sale date.
- Calculate the 3-day moving average of sales amount by sale date.
- For each employee, calculate their running total of sales amount over time.
- For each employee, calculate a 2-period moving average of their sales achieved from performance reviews.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 3. Chapitre 2
single