Search ⌘K
PayPal
PayPal

Analytics Reporting Track · Medium · 25 min

First Purchase Revenue by Signup Month

Revenue planning wants to understand how much first-time purchase revenue is coming from each merchant signup cohort. Return signup_month and the total value...

Analytics Reporting Track
Medium
25 min
query basics
aggregation
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 train on SQL that mirrors day-to-day analytics workflows and recurring reporting asks.

Company context

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

Prereq: query basics
Prereq: filtering
Prereq: aggregation
Prereq: date functions

Revenue planning wants to understand how much first-time purchase revenue is coming from each merchant signup cohort. Return signup_month and the total value of each merchant's first purchase, rounded to two decimals. Sort by signup_month.

merchant_signups
merchant_id INT
signup_date DATE
merchant_idsignup_date
12024-01-05
22024-01-21
32024-02-10
42024-02-25
merchant_purchases
purchase_id INT
merchant_id INT
purchase_date DATE
amount NUMERIC(10
2
purchase_idmerchant_idpurchase_dateamount2
10112024-01-12200.00
10212024-02-01250.00
10322024-02-03180.00
10432024-02-16300.00
10542024-03-0190.00
10642024-03-07150.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.