Search ⌘K
CVS Health
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 ...

Interview Core Track
Easy
15 min
query basics
filtering
joins

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

Timer 00:00
Back to practice

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.

Prereq: query basics
Prereq: filtering

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 INT
city VARCHAR(30
store_idcity
1Dallas
2Phoenix
3Seattle
4Tampa
shifts
shift_id INT
store_id INT
shift_date DATE
shift_type VARCHAR(20
shift_idstore_idshift_dateshift_type
10112024-08-17Morning
10212024-08-18Evening
10322024-08-17Morning
10432024-08-18Evening
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.