Subscription Commerce Analytics Path · Mission 4 of 25Easy

Q3 2024 acquisition by channel

Date-range filter (BETWEEN) on a single dim table. Practice GROUP BY a low-cardinality column, COUNT(*), and producing a quarterly cohort breakdown the marketing team can paste into a planning doc.

The Brief

Aisha OkaforMarketing Leadsubscription-ops

Lifecycle planning for the 2024-Q3 cohort. From dim_customers, count subscribers who signed up between 2024-07-01 and 2024-09-30, broken down by acquisition_channel. is_subscriber = 1 only — we don't want one-time-only buyers polluting the cohort sizing. Two columns: acquisition_channel, new_subs. Sort new_subs descending, acquisition_channel ascending as tiebreaker.

You'll practice

Date filterCOUNTWHERE

Tables & columns available

dim_customersdim8 columns
ColumnTypeKey
customer_idINTPK
emailTEXT
first_nameTEXT
last_nameTEXT
countryTEXT
signup_dateTEXT
acquisition_channelTEXT
is_subscriberINT

Hints (3)

Each hint you reveal reduces the XP you can earn. Try the query first.

Hint 1

Single-table query — dim_customers is the only one you need.

Hint 2

Two filters: is_subscriber = 1 AND signup_date between '2024-07-01' and '2024-09-30'. Both date strings are inclusive (BETWEEN is inclusive in standard SQL).

Hint 3

GROUP BY acquisition_channel, COUNT(*) — six channels exist (organic, paid_search, paid_social, influencer, referral, email).