Share of New Users Whose First Action Was Joining a Group

Last updated: November 29, 2026

Quick Overview

For each signup week, compute the share of new Facebook users whose first logged action after signup was joining a Group, and list the three most common first actions overall.

Meta
Data Manipulation (SQL/Python)
Data Scientist
Meta
November 29, 2026
Data Scientist
Technical Screen
Data Manipulation (SQL/Python)
Easy

0

0

0 solved


For each signup week, compute the share of new Facebook users whose first logged action after signup was joining a Group, and list the three most common first actions overall.

Groups is a major onboarding path on Facebook, and growth analysts at Meta often ask what new users do first. The interviewer checks that you can pick the first event per user with FIRST_VALUE or ROW_NUMBER and keep users with no actions in the denominator.

What the Interviewer Expects
  • Restricts events to those after the user's signup time
  • Uses FIRST_VALUE or ROW_NUMBER to get each user's first action
  • Keeps users with no post-signup events in the denominator
  • Groups by signup week for the share
  • Uses a deterministic tie-break when two events share a timestamp
Key Topics to Cover
FIRST_VALUE
first event per user
onboarding analysis
denominators
DATE_TRUNC
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
  • How would you compare 28-day retention for users whose first action was a group join versus a friend request?
  • Passive events like 'feed_impression' would dominate first actions. How would you restrict to intentional actions?
  • How would you check whether the group-first share differs between users acquired from ads and from invites?
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

Tables:

  • users(user_id, signup_at)
  • user_actions(event_id, user_id, action, action_at), where action is something like 'group_join', 'friend_request', 'post', 'like'.

I will count onl...

Approach

Use FIRST_VALUE(action) OVER (PARTITION BY user_id ORDER BY action_at, event_id) on the post-signup events, then DISTINCT to one row per user. Left join onto users, bucket by signup week, and aver...


Submit Your Answer
Markdown supported