Top 50
Topic roadmap
Updated weekly · Last refresh Sep 13

Top 50 Lag/Lead Interview Questions

The most frequently asked Lag/Lead questions across all roles and companies, ranked by real interview frequency. Updated daily.

50questions
~17htotal time
97companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
Window FunctionsStart here. 36 questions · ~720 min
Compare Weekly User Activity TrendsMedium
Practice

Aggregate user activity by week, then use LAG to compare sessions and watch time versus the prior active week.

Window FunctionsLag/LeadDate FunctionsB Lab GlobalTapadScale
Window Functions Rolling ComparisonHard
Practice

Compute each user's seven-day activity average and compare it with the corresponding rolling average from the prior week.

Window FunctionsLag/LeadData ManipulationFactoredCContentsquareCCult (Cure.fit)
Measure Week-Over-Week Metric ChangesMedium
Practice

Use LAG to compare an operational KPI week over week and surface absolute and percentage change.

Window FunctionsLag/LeadDate FunctionsGICUber FreightCorsair
Compare Current vs Historical Customer BehaviorHard
Practice
Recently asked

Use window functions and CTEs to compare each customer’s latest month against their prior 3-month behavior baseline.

Window FunctionsLag/LeadDate FunctionsApplied SystemsQuantiumBASF
SQL Rolling Average with WindowsMedium
Practice

Use PostgreSQL window functions to compare Harnham Recruiter Cloud's seven-day application average with the prior week.

Window FunctionsLag/LeadRunning TotalsHarnhamHachIInternshala
User Ride Trends with WindowsMedium
Practice

Use monthly aggregation and LAG to measure each rider’s completed ride trend and month-over-month change.

Window FunctionsLag/LeadRunning TotalsDidi ChuxingUber
Window Functions for MoM ChangeMedium
Practice
Recently asked

Use CTEs and LAG to calculate monthly average cardholder transaction volume and month-over-month percentage change.

Window FunctionsLag/LeadAggregationsCapital OneNotion Labs
SQL Month-over-Month Revenue ComparisonMedium
Practice
Recently asked

Compare each product's current and previous month revenue, including absolute and percentage changes.

Window FunctionsLag/LeadDate FunctionsGoogleKeyrus France
More Window Functions questions with a free account

Sign up to see every question

Create a free account to unlock this list and practice real interview questions.

Get my prep plan
2
Lag/Lead13 questions · ~260 min
More Lag/Lead questions with a free account
3
More topics1 question · ~20 min
More questions with a free account
The finish line: interview-readyComplete all 50 questions to finish this plan.