Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan
SQL: Video and Voice Callers
00:00
5 left

SQL: Video and Voice Callers

MediumSQL · PostgreSQL

Problem

Meta's Product Growth team is analyzing activation in Messenger Calling as part of the AARRR funnel. Calculate the percentage of eligible callers who completed both voice and video calls during January 2025.

Write a PostgreSQL query that treats each caller as one unit. Do not count call events directly, and exclude calls from other Meta surfaces, failed calls, calls outside the period, and events with an unknown call type.

Requirements

  1. Join the user and call event tables and filter to completed Messenger Calling events from 2025-01-01 through 2025-01-31.
  2. Identify whether each caller made at least one valid voice call and at least one valid video call.
  3. Return the number of callers who made both types, the total number of eligible callers, and the percentage, rounded to two decimal places.

Schema

meta_users
ColumnTypeDescription
user_idPKBIGINTMeta user identifier
user_nameVARCHAR(100)Illustrative user label
call_events
ColumnTypeDescription
call_event_idPKBIGINTCall event identifier
caller_idBIGINTUser who initiated the call
product_surfaceVARCHAR(50)Meta product surface where the call occurred
call_typeVARCHAR(20)Voice or video call format
call_statusVARCHAR(20)Call lifecycle status
event_dateDATEDate of the call event
Tablesmeta_userscall_events
Interviewer

Your question is SQL: Video and Voice Callers. Start with the requirements and the two tables in the Question tab.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.
CodePostgreSQL
Sign up free to run your codeLog inLn 1
Run your query to see results here.