Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Compare Chime Channel Conversion Rates

MediumSQL · PostgreSQL00:00
Practice interviewer
In session
5 left
00:00

Your question is Compare Chime Channel Conversion Rates. Start with the requirements and the three tables on the right.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.

Problem

Chime’s growth team wants to compare signup-to-funded-account conversion rates across acquisition channels for users acquired in January 2024. Write a SQL query to measure channel performance.

Requirements

  1. Consider only users whose signup_date falls between 2024-01-01 and 2024-01-31.
  2. Attribute each user to their acquisition channel from acquisition_touches.
  3. Count a user as converted only if they have a funded event in conversion_events within 14 days after signup.
  4. Return, for each channel, the number of signed-up users, number of converted users, and conversion rate as a percentage rounded to 2 decimals.
  5. Include channels with zero conversions, and sort by conversion rate descending, then by channel name.

Schema

users
ColumnTypeDescription
user_idPKINTUnique Chime user identifier
signup_dateDATEDate the user signed up
app_surfaceVARCHAR(50)Chime surface where signup started
acquisition_touches
ColumnTypeDescription
touch_idPKINTUnique acquisition touch identifier
user_idINTUser tied to the acquisition touch
channelVARCHAR(50)Acquisition channel
campaign_nameVARCHAR(100)Campaign or partner name
conversion_events
ColumnTypeDescription
event_idPKINTUnique conversion event identifier
user_idINTUser tied to the event
event_typeVARCHAR(30)Event type such as funded or card_activated
event_dateDATEDate the event occurred
Tablesusersacquisition_touchesconversion_events
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results