Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

SQL Rolling Average with Window Functions

Medium
MediumSQL & Data ManipulationWindow FunctionsDate FunctionsRunning Totals
Asked 1mo ago|
McDonald's
McDonald's

Problem

Write a SQL query using window functions to calculate a 7-day rolling average of daily orders by store.

Practicing as: Data Scientist interview at McDonald's

Hi, I'll play your McDonald's interviewer for the Data Scientist role. Answer the question above like we're in the room, and I'll respond the way a real interviewer would.

Take this as a live interview session →

You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.

Sign up freeI have an account
Sign up to unlock solutions
Next questions
GrubMarketSQL Rolling Average With Window FunctionsMediumPA ConsultingSQL Rolling Average with Window FunctionsMediumCVSSQL Rolling Average by StoreMedium