Top 50 Lag/Lead Interview Questions
The most frequently asked Lag/Lead questions across all roles and companies, ranked by real interview frequency. Updated weekly.
Use LAG to compare an operational KPI week over week and surface absolute and percentage change.
Uber Freight
GIC
EazeUse window functions and CTEs to compare each customer’s latest month against their prior 3-month behavior baseline.
Applied Systems
Quantium
BASFUse monthly aggregation and LAG to measure each rider’s completed ride trend and month-over-month change.
Didi Chuxing
UberUse window functions to flag a sudden drop in reviewer accuracy across consecutive review days.
OpenAIUse ROW_NUMBER, LAG, and LEAD to build per-driver Motive Driver App event sequences with previous/next events and time gaps.
MotiveUse window functions to compare each customer's monthly activity against prior months and identify behavior changes.
QantasSign up to see every question
Create a free account to unlock this list and practice real interview questions.
Open any question for its full solution and discussion.
Browse all questions →