Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan
Signup to Activation Funnel Analysis
00:00
5 left

Signup to Activation Funnel Analysis

MediumSQL · PostgreSQL

Problem

You are given user signup data and downstream product events from Quora. Write a PostgreSQL query that produces a funnel by signup date for users who signed up in January 2024. Treat a user as activated if they perform at least one follow_topic, upvote, or ask_question event within 7 days after signup, inclusive of the signup day. Return, for each signup date, the number of signed-up users, the number who completed onboarding, the number who activated, and the onboarding and activation rates as percentages of signups.

Use the event log rather than assuming onboarding or activation from a status field, and make sure each user is counted at most once per stage.

Schema

quora_users
ColumnTypeDescription
user_idPKINTUnique user identifier
signup_dateDATEDate the user signed up
signup_surfaceVARCHAR(50)Quora surface where signup started
country_codeVARCHAR(2)User country code
quora_onboarding_events
ColumnTypeDescription
event_idPKINTUnique onboarding event identifier
user_idINTUser who triggered the onboarding event
event_nameVARCHAR(50)Onboarding event type
event_timeTIMESTAMPTimestamp of the onboarding event
quora_product_events
ColumnTypeDescription
event_idPKINTUnique product event identifier
user_idINTUser who triggered the product event
event_nameVARCHAR(50)Product event type
event_timeTIMESTAMPTimestamp of the product event
Tablesquora_usersquora_onboarding_eventsquora_product_events
Interviewer

Your question is Signup to Activation Funnel Analysis. Start with the requirements and the three tables in the Question tab.

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.
CodePostgreSQL
Sign up free to run your codeLog inLn 1
Run your query to see results here.