Search ⌘K
PayPal
PayPal

Interview Core Track · Easy · 15 min

Churned Merchants with Pending Payouts

Risk ops needs a cleanup list for merchants who have already churned but still have money waiting to be disbursed. Return the merchant_id values for churned ...

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

Risk ops needs a cleanup list for merchants who have already churned but still have money waiting to be disbursed. Return the merchant_id values for churned merchants that have at least one payout_status of pending. Sort by merchant_id.

merchants
merchant_id INT
merchant_status VARCHAR(20
merchant_idmerchant_status
10active
20churned
30churned
40active
payouts
payout_id INT
merchant_id INT
payout_status VARCHAR(20
payout_idmerchant_idpayout_status
110paid75.00
220pending120.00
320paid45.00
430pending65.00
540pending30.00
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.