Bounce Rate of Facebook Dating Sessions by Entry Point

Last updated: November 29, 2026

Quick Overview

Given a sessions table and an events table keyed by session_id, compute the share of Facebook Dating sessions that contain exactly one event, broken down by the entry point that started the session.

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

0

0

0 solved


Given a sessions table and an events table keyed by session_id, compute the share of Facebook Dating sessions that contain exactly one event, broken down by the entry point that started the session.

An early SQL question in a Meta data science phone screen. The interviewer wants a correct grouped aggregate over a join, clear handling of sessions with zero logged events, and a sensible definition of bounce.

What the Interviewer Expects
  • Counts events per session before classifying bounces
  • Uses a LEFT JOIN so sessions without events are not silently dropped
  • Defines bounce clearly and states how zero-event sessions are treated
  • Groups by entry point and returns rate plus volume
  • Keeps the query readable with a CTE
Key Topics to Cover
LEFT JOIN
GROUP BY
bounce rate
session-level metrics
CTE
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
  • Should a session with zero events count as a bounce?
  • How would you compare bounce rate before and after a new profile prompt launched?
  • Why is a low-volume entry point's bounce rate noisy, and how would you show that?
  • How would you define bounce by time on page instead of event count?
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: dating_sessions(session_id, user_id, entry_point, start_ts) with entry points like bookmark, notification, profile_tab, and dating_events(session_id, event_name, event_ts). The sessi...

Approach

First, count events per session with a left join so that every session appears. Then aggregate per entry point: total sessions, bounced sessions, and sessions with no events. Bounce rate uses sessions...


Submit Your Answer
Markdown supported