Visa
Interview Core Track · Easy · 15 min
Dormant Promo Codes
Marketing launched several promo codes in Q1 2024 and wants to retire the unused ones. Return the promo_code values for codes created between 2024-01-01 and ...
Company labels are directional practice context, not official interview guidance.
Objective
Practice query basics through a Visa-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.
Marketing launched several promo codes in Q1 2024 and wants to retire the unused ones. Return the promo_code values for codes created between 2024-01-01 and 2024-03-31 that were never redeemed. Sort alphabetically.
promo_codes
| code_id | promo_code | |
|---|---|---|
| 1 | SPRING10 | 2024-01-09 |
| 2 | MARCHVIP | 2024-03-02 |
| 3 | WELCOME5 | 2024-02-11 |
| 4 | SUMMER20 | 2024-04-03 |
promo_redemptions
| redemption_id | code_id | redeemed_at |
|---|---|---|
| 101 | 1 | 2024-01-14 |
| 102 | 3 | 2024-02-18 |
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.