Challenge: Analyze Trends with Window Functions
Task
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
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 2
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 5.56
Challenge: Analyze Trends with Window Functions
Swipe to show menu
Task
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
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 2
single