[SQL] Job Ad Metrics with Applicant Filter
Company: LinkedIn
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Technical Screen
Overview: This question evaluates proficiency in SQL data manipulation and deduplication, focusing on aggregations, distinct counts, and conditional filtering of event records (views vs applies).
Tables
job_activity(job_id INTEGER, candidate_id INTEGER, activity_type VARCHAR)
Hints
- First aggregate base metrics per job_id using conditional COUNT(DISTINCT ...) for viewers and applicants.
- Identify the set of candidates who have at least one 'view' event anywhere in the table.