Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Analyze Trends with Window Functions | Window Functions for Trends and Rankings
SQL for Business Intelligence Analysts

bookChallenge: Analyze Trends with Window Functions

Uppgift

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.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 2
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

bookChallenge: Analyze Trends with Window Functions

Svep för att visa menyn

Uppgift

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.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 2
single

single

some-alt