Identify Top Contributors by Recent Post Count
Company: LinkedIn
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Technical Screen
Overview: This question evaluates proficiency in SQL data aggregation and time-based event summarization, focusing on counting and grouping user-generated records to measure recent activity.
Tables
posts(id INTEGER, user_id INTEGER, created_at TIMESTAMP)
Hints
- Filter to the last 30 days: created_at >= CURRENT_DATE - INTERVAL '30 days'.
- Group by user_id and use COUNT(*) to compute post_count.