Seven-Day Activation Rate by Signup Channel for New Neighbors
Last updated: November 29, 2026
Quick Overview
Given members with a verification time and signup channel, and an events table of posts, comments and reactions, compute for the October cohort the share of members who posted or commented within 7 days of verifying, plus the average hours to that first contribution, by channel.
Nextdoor
November 29, 20260
0
0 solved
Given members with a verification time and signup channel, and an events table of posts, comments and reactions, compute for the October cohort the share of members who posted or commented within 7 days of verifying, plus the average hours to that first contribution, by channel.
Nextdoor grows through invitations from neighbors, mailed postcards and organic signups, and leadership wants to know which channel brings members who actually join the conversation. The interviewer checks cohort definition, a correct per-member time window, and that non-activated members stay in the denominator.
What the Interviewer Expects
- Define the cohort by verification date, not signup date
- Anchor the 7 day window to each member's own verification time
- Count only posts and comments, excluding passive reactions
- Keep non-activated members via LEFT JOIN so the denominator is the full cohort
- Compute time to first contribution only over activated members
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
- Members verified on October 30 have not had 7 full days by November 1. How do you handle incomplete windows?
- How would you get the median hours instead of the mean?
- Invite signups activate more. Does that mean invites cause activation?
- How would you split the result by neighborhood size bucket?
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
members(member_id, neighborhood_id, verified_at, signup_channel) and events(member_id, event_type, created_at) with event_type in post, comment, reaction. Cohort: verified between 2026-10-01 and...
Approach
CTE one selects the cohort. CTE two joins events onto the cohort with the per-member window in the join condition and takes MIN(created_at) as first contribution. The final query LEFT JOINs that bac...