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
November 29, 20260
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
How to Approach This
- Clarify the schema and expected output format before writing queries.
- Use CTEs (WITH clauses) to break complex queries into readable steps.
- Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
- Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
- 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 ProblemsSample 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...