CVS Health
Interview Core Track · Easy · 15 min
Weekend Staffing Gaps
Regional ops wants to find stores with no staffing at all during the weekend of 2024-08-17 and 2024-08-18. Return store_id and city for stores that had zero ...
Company labels are directional practice context, not official interview guidance.
Objective
Practice query basics through a CVS Health-tagged business scenario.
Approach
Use this track to improve speed, edge-case handling, and accuracy under timed conditions.
Company context
Company labels are directional practice context, not official interview guidance.
Regional ops wants to find stores with no staffing at all during the weekend of 2024-08-17 and 2024-08-18. Return store_id and city for stores that had zero shifts on both days. Sort by store_id.
stores
| store_id | city |
|---|---|
| 1 | Dallas |
| 2 | Phoenix |
| 3 | Seattle |
| 4 | Tampa |
shifts
| shift_id | store_id | shift_date | shift_type |
|---|---|---|---|
| 101 | 1 | 2024-08-17 | Morning |
| 102 | 1 | 2024-08-18 | Evening |
| 103 | 2 | 2024-08-17 | Morning |
| 104 | 3 | 2024-08-18 | Evening |
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.