Analyze Cross-Country Call Data for Recent Trends
Company: Meta
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Technical Screen
Overview: This question evaluates a candidate's competency in relational data manipulation, including joining tables, aggregations, time-based filtering, and duration calculations using SQL or equivalent Python tools.
Tables
Users(user_id INTEGER, signup_date DATE, country CHAR(2))
Calls(call_id INTEGER, caller_id INTEGER, receiver_id INTEGER, start_time DATETIME, end_time DATETIME)
Hints
- Join Calls to Users twice: once on caller_id and once on receiver_id.
- Filter using the fixed window [2022-07-01, 2022-07-31).