Newyorktimes
Medium
Data AnalystWrite SQL for content view metrics by device
Data Manipulation (SQL/Python)
4
0
March 1, 2022
Window function questions test how you compute row-level metrics while keeping the original rows.
Expect ROW_NUMBER, RANK, LAG, LEAD, and running totals with PARTITION BY and ORDER BY.
Interviewers want clear reasoning about partitions, ordering, and edge cases.
Interviewers prioritize correctness and the right partitioning logic.
Explain why you chose a window function instead of a GROUP BY.
Be clear about ordering and how ties are handled.