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
Predict Robinhood Churn
00:00
5 left

Predict Robinhood Churn

MediumSQL · PostgreSQL

Problem

Tell me about how you would predict churn for Robinhood users.

Use the provided users and user_activity tables to produce a reproducible SQL-based churn-risk output as of March 31, 2025. Consider users created by the cutoff who have at least one recorded activity, and classify users based on days since their latest activity.

Output

  1. One row per included user with user_id, email, last_activity_date, days_since_last_activity, total_activities, trade_count, and churn_risk
  2. Exclude users with no activity and users created after the cutoff
  3. Order by risk from highest to lowest, then by user_id ascending

Schema

users
ColumnTypeDescription
user_idPKINTUnique Robinhood user identifier
emailVARCHAR(255)User email address
created_atDATEDate the user account was created
user_activity
ColumnTypeDescription
activity_idPKINTUnique activity identifier
user_idINTUser associated with the activity
activity_dateDATEDate the activity occurred
activity_typeVARCHAR(30)Activity category, such as login or trade
Tablesusersuser_activity
Interviewer

Your question is Predict Robinhood Churn. Start with the requirements and the two 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.