Analyze Recent User Activity from Video Call Logs
Company: Meta
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Technical Screen
Overview: This question evaluates proficiency in data manipulation and aggregation over event logs and user dimension tables, assessing skills in joining datasets, measuring unique interactions, and computing recent user-activity metrics using SQL or Python.
Tables
video_calls(caller VARCHAR, recipient VARCHAR, ds DATE, call_id VARCHAR, duration DECIMAL(10,1))
dim_all_users(user_id VARCHAR, age_bucket VARCHAR, country VARCHAR(2), primary_os VARCHAR(20), dau_flag INTEGER, ds DATE)
Hints
- Use COUNT(DISTINCT recipient) per caller for the 7-day metric.
- Filter by ds using CURRENT_DATE; exclude today when defining 'last 7 days'.