Mind the Gap: Using SQL Functions for Time-Series Analysis | TigerData