Facebook Signup Funnel Completed in Order Within Twenty-Four Hours

Last updated: November 29, 2026

Quick Overview

Using registration events, compute for each signup day how many users started registration, verified a contact point, and added a profile photo, counting a step only if it happened after the previous step and within 24 hours of starting.

Meta
Data Manipulation (SQL/Python)
Data Scientist
Meta
November 29, 2026
Data Scientist
Onsite
Data Manipulation (SQL/Python)
Medium

0

0

0 solved


Using registration events, compute for each signup day how many users started registration, verified a contact point, and added a profile photo, counting a step only if it happened after the previous step and within 24 hours of starting.

Shows up in the onsite SQL interview for growth-focused data science roles, where new-user registration is a core metric. The interviewer is checking whether you can enforce ordering and a time window rather than counting any event that ever happened.

What the Interviewer Expects
  • Anchors each user on their first registration start
  • Enforces step ordering using timestamps from the previous step
  • Applies the 24-hour window relative to the start time
  • Groups by signup day and returns counts plus rates
  • Explains why first occurrence is used at each step
Key Topics to Cover
ordered funnel
time window
MIN aggregation
LEFT JOIN chain
cohort by day
How to Approach This
  1. Clarify the schema and expected output format before writing queries.
  2. Use CTEs (WITH clauses) to break complex queries into readable steps.
  3. Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
  4. Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
  5. For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
  • What changes if a user can restart registration several times?
  • How would you show the median time between steps?
  • How would you split this by country and Android versus iOS?
  • Why might the 24-hour window undercount for markets with SMS delivery delays?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice SQL Problems
Sample Answer
Clarify the Data

Table reg_events(user_id, event_name, event_ts) with start_reg, verify_contact, add_photo. A user might fire start_reg more than once; I anchor on their first one. A step counts only if its ...

Approach

Build one row per user with the start time. Then for verify, take the earliest verify event that is after start and within 24 hours. For photo, take the earliest photo event after that verify time and...


Submit Your Answer
Markdown supported