Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Find Drivers of Backlog Growth

HardSQL · PostgreSQL00:00
Practice interviewer
In session
5 left
00:00

Your question is Find Drivers of Backlog Growth. Start with the requirements and the one table on the right.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.

Problem

You are given a backlog snapshot table and asked to identify the top drivers of backlog growth over time. Write a PostgreSQL query that measures month-over-month backlog change for each queue, ranks queues within each month by their contribution to growth, and returns the ranked results in chronological order.

Schema

backlog_snapshots
ColumnTypeDescription
snapshot_dateDATEDate the backlog snapshot was recorded
queue_nameVARCHAR(100)Queue or workstream name
backlog_countINTOpen backlog items at the snapshot date
regionVARCHAR(50)Region associated with the queue
Tablesbacklog_snapshots
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results