runtime
57 / 139

task Funnels & conversion · hard

Paid conversion by acquisition channel

For workspaces created before 2025-06-01, return acquisition_channel, workspaces, converted (workspaces with a paid subscription starting within 30 days of creation) and conversion_pct (0–100, 2 decimals).

what to return

Columns
acquisition_channelworkspacesconvertedconversion_pct in this order
Rows
6 rows · any order
Skill
Compare conversion rates across segments with a fixed window. Refresher: Experiment conversion denominators →

expected result

Your query should return exactly these columns and values. Run it and compare.

expected result6 rows · any order
acquisition_channelworkspacesconvertedconversion_pct
organic948616.43
outbound_sales226177.52
paid_search700578.14

first 3 of 6 rows

data you can query

Product / SaaS Analytics dataset: the first 6 rows of each table. Under each column name: the kind of value it holds, and which table it links to. Your queries run on all rows.

accounts7 columns · 3,200 rows
account_idnumber · unique idaccount_nametextindustrytextcompany_sizetextcountrytextacquisition_channeltextcreated_atdate & time
1Iron Capital IncLogistics11-50United Statesorganic2024-01-14 18:52:14
2Vector Data CoNonprofit51-200United Kingdomsocial2024-01-15 13:21:52
3True Foods IncHealthcare201-1000United Statesoutbound_sales2024-01-19 11:22:02
4Meridian WorksSoftware11-50United Statesorganic2024-01-23 23:42:36
5Prism Health GroupSoftware1-10Germanyreferral2024-01-25 11:43:43
6Beacon Supply LtdMedia1000+United Kingdomorganic2024-01-27 20:19:28
account_idnumber · unique id
1
account_nametext
Iron Capital Inc
industrytext
Logistics
company_sizetext
11-50
countrytext
United States
acquisition_channeltext
organic
created_atdate & time
2024-01-14 18:52:14
account_idnumber · unique id
2
account_nametext
Vector Data Co
industrytext
Nonprofit
company_sizetext
51-200
countrytext
United Kingdom
acquisition_channeltext
social
created_atdate & time
2024-01-15 13:21:52
account_idnumber · unique id
3
account_nametext
True Foods Inc
industrytext
Healthcare
company_sizetext
201-1000
countrytext
United States
acquisition_channeltext
outbound_sales
created_atdate & time
2024-01-19 11:22:02
account_idnumber · unique id
4
account_nametext
Meridian Works
industrytext
Software
company_sizetext
11-50
countrytext
United States
acquisition_channeltext
organic
created_atdate & time
2024-01-23 23:42:36
account_idnumber · unique id
5
account_nametext
Prism Health Group
industrytext
Software
company_sizetext
1-10
countrytext
Germany
acquisition_channeltext
referral
created_atdate & time
2024-01-25 11:43:43
account_idnumber · unique id
6
account_nametext
Beacon Supply Ltd
industrytext
Media
company_sizetext
1000+
countrytext
United Kingdom
acquisition_channeltext
organic
created_atdate & time
2024-01-27 20:19:28

first 6 of 3,200 rows · your queries use all of them

subscriptions8 columns · 4,583 rows
subscription_idnumber · unique idaccount_idnumber · links to accountsplantextbilling_periodtextmrr_centsnumberstarted_atdate & timeended_atdate & timeend_reasontext
11freeNULL02024-01-14 18:52:142024-10-11 18:52:14upgrade
21promonthly99002024-10-11 18:52:14NULLNULL
32freeNULL02024-01-15 13:21:52NULLNULL
43freeNULL02024-01-19 11:22:022024-08-28 11:22:02upgrade
53starterannual24172024-08-28 11:22:02NULLNULL
64freeNULL02024-01-23 23:42:36NULLNULL
subscription_idnumber · unique id
1
account_idnumber · links to accounts
1
plantext
free
billing_periodtext
NULL
mrr_centsnumber
0
started_atdate & time
2024-01-14 18:52:14
ended_atdate & time
2024-10-11 18:52:14
end_reasontext
upgrade
subscription_idnumber · unique id
2
account_idnumber · links to accounts
1
plantext
pro
billing_periodtext
monthly
mrr_centsnumber
9900
started_atdate & time
2024-10-11 18:52:14
ended_atdate & time
NULL
end_reasontext
NULL
subscription_idnumber · unique id
3
account_idnumber · links to accounts
2
plantext
free
billing_periodtext
NULL
mrr_centsnumber
0
started_atdate & time
2024-01-15 13:21:52
ended_atdate & time
NULL
end_reasontext
NULL
subscription_idnumber · unique id
4
account_idnumber · links to accounts
3
plantext
free
billing_periodtext
NULL
mrr_centsnumber
0
started_atdate & time
2024-01-19 11:22:02
ended_atdate & time
2024-08-28 11:22:02
end_reasontext
upgrade
subscription_idnumber · unique id
5
account_idnumber · links to accounts
3
plantext
starter
billing_periodtext
annual
mrr_centsnumber
2417
started_atdate & time
2024-08-28 11:22:02
ended_atdate & time
NULL
end_reasontext
NULL
subscription_idnumber · unique id
6
account_idnumber · links to accounts
4
plantext
free
billing_periodtext
NULL
mrr_centsnumber
0
started_atdate & time
2024-01-23 23:42:36
ended_atdate & time
NULL
end_reasontext
NULL

first 6 of 4,583 rows · your queries use all of them

solution.sql
 

Hints and the answer are always available. Using them counts the question as solved with help.

Paid conversion by acquisition channel — SQL practice · Runtime