Challenge: Analyze Trends with Window Functions
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 2
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Suggested prompts:
Can you explain this in simpler terms?
What are the main takeaways from this?
Can you give me an example?
Fantastisk!
Completion rate forbedret til 5.56
Challenge: Analyze Trends with Window Functions
Sveip for å vise menyen
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 2
single