Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Landing Page to Sign-Up Conversion

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

Your question is Landing Page to Sign-Up Conversion. Start with the requirements and the one table 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 a quick read on how well the sign-up landing page converts visitors into completed account sign-ups. Write a SQL query to calculate the conversion rate using a single event table.

Requirements

  1. Use only events from the signup_landing surface.
  2. Count distinct visitors who had a landing_page_visit event as the denominator.
  3. Count distinct visitors who had a completed_signup event as the numerator.
  4. Return the number of landing page visitors, the number of completed sign-ups, and the conversion rate as a percentage rounded to 2 decimal places.

Schema

growth_funnel_events
ColumnTypeDescription
event_idPKINTUnique event row identifier
user_idINTVisitor or member identifier
event_nameVARCHAR(50)Name of the funnel event
surface_nameVARCHAR(50)Chime product surface where the event occurred
event_dateDATEDate of the event
device_typeVARCHAR(20)Device used for the event
Tablesgrowth_funnel_events
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results