What is an as-of or nearest-match join, and how would you implement it in SQL for aligning time-series data?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks what an as-of or nearest-match join is and how to write one in SQL to align time series sampled at different times, such as trades and quotes. It tests the matching rule, handling of ties and missing matches, query performance, and pitfalls like look-ahead bias.