Explain DATE_TRUNC and time bucketing, and how to bucket events by week or month for time-series aggregation
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how DATE_TRUNC and time bucketing work in SQL and how to aggregate events by week or month for a time series. Tests your understanding of grouping on truncated timestamps, week start days, time zones, missing periods, and fixed-width buckets.