Search ⌘K
DoorDash
DoorDash

Foundations Track · Easy · 15 min

Duplicate Delivery Role Posts

Delivery operations wants a monthly cleanup report for employers that recycled the same role posting. Looking only at April 2024, return one value named empl...

Foundations Track
Easy
15 min
query basics
aggregation
filtering

Company labels are directional practice context, not official interview guidance.

Timer 00:00
Back to practice

Objective

Practice query basics through a DoorDash-tagged business scenario.

Approach

Use this track to lock in clean query structure, basic filtering logic, and confidence with grouped output.

Company context

Company labels are directional practice context, not official interview guidance.

Prereq: query basics
Prereq: filtering

Delivery operations wants a monthly cleanup report for employers that recycled the same role posting. Looking only at April 2024, return one value named employers_with_duplicates for employers that posted the same role_name in the same city more than once.

delivery_roles
job_id INT
employer_id INT
role_name VARCHAR(30
job_idemployer_idrole_name
110CourierAustin2024-04-01
210CourierAustin2024-04-03
310PickerAustin2024-04-04
411CourierBoston2024-04-02
512DispatcherDenver2024-04-05
612DispatcherDenver2024-04-09
Editor
SQL workspace

Run queries against the protected question data, then submit once the result shape looks right.

Sign in to run SQL

Create a free account or sign in before running queries against protected question data.