Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Analyze Asana Onboarding Funnel Dropoff

MediumSQL · PostgreSQL00:00
I
Practice interviewer
Your interviewer
In session
I
Interviewer

Welcome to the SQL screen.

The question is on your right: Analyze Asana Onboarding Funnel Dropoff. Read through the requirements and the three tables first.

Run and submit your code as often as you need. You also have five interviewer messages this session - want to talk through your approach, or are you ready to start coding?

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

Problem

Asana's growth team wants to understand where newly signed-up users are dropping off during onboarding. Write a SQL query to measure conversion through a 7-day onboarding funnel for each signup date.

Requirements

  1. Treat the funnel steps as: signup  workspace_created  project_created  task_completed.
  2. Only count events that happen within 7 days of the user's signup timestamp.
  3. Return one row per signup_date with:
    • total signed up users
    • users who reached each funnel step
    • conversion rate from signup to each step
    • the step with the largest dropoff in user count
  4. Exclude users whose signup_ts is NULL.

Use the tables below.

Schema

users
ColumnTypeDescription
user_idPKINTUnique user identifier
signup_tsTIMESTAMPTimestamp when the user signed up
acquisition_channelVARCHAR(50)Marketing channel that acquired the user
country_codeVARCHAR(2)User country code
event_log
ColumnTypeDescription
event_idPKINTUnique event identifier
user_idINTUser who triggered the event
event_nameVARCHAR(50)Name of the Asana event
event_tsTIMESTAMPTimestamp when the event occurred
surfaceVARCHAR(50)Asana surface where the event occurred
workspace_memberships
ColumnTypeDescription
membership_idPKINTUnique membership record
user_idINTUser identifier
workspace_idINTWorkspace identifier
role_nameVARCHAR(30)Role in the workspace
joined_tsTIMESTAMPTimestamp when the user joined the workspace
Tablesusersevent_logworkspace_memberships
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results