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

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 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.

Prereq: query basics
Prereq: filtering

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 INT
promo_code VARCHAR(20
code_idpromo_code
1SPRING102024-01-09
2MARCHVIP2024-03-02
3WELCOME52024-02-11
4SUMMER202024-04-03
promo_redemptions
redemption_id INT
code_id INT
redeemed_at DATE
redemption_idcode_idredeemed_at
10112024-01-14
10232024-02-18
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.