How do you generate a date spine (calendar table) in SQL, and why does it matter for sparse time-series data?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how to build a date spine or calendar table in SQL and why it matters when a time series has days with no data. Tests generating date ranges, LEFT JOIN gap filling, window functions over missing periods, and choosing between zeros and NULLs.