Sessionization in SQL: how to define and identify user sessions from inactivity gaps
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how to split a user's event stream into sessions using an inactivity timeout and which SQL window functions do the work. Tests gaps-and-islands reasoning, running totals over ordered partitions, and handling ties and session boundaries.