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...
Company labels are directional practice context, not official interview guidance.
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.
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 | employer_id | role_name | ||
|---|---|---|---|---|
| 1 | 10 | Courier | Austin | 2024-04-01 |
| 2 | 10 | Courier | Austin | 2024-04-03 |
| 3 | 10 | Picker | Austin | 2024-04-04 |
| 4 | 11 | Courier | Boston | 2024-04-02 |
| 5 | 12 | Dispatcher | Denver | 2024-04-05 |
| 6 | 12 | Dispatcher | Denver | 2024-04-09 |
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.