Question 1
AdvancedData Ingestion and Data Preparation · Query tables to assess data and required transformations
A quantitative analyst at a hedge fund needs to align a table of executed stock trades with a table of quote prices. The requirement is to find the prevailing bid price at the exact moment or immediately before a trade occurred. The timestamps will rarely match exactly. Which approach is the most efficient and semantically correct in Snowflake?
Answer and explanation
Correct answer: A
An ASOF JOIN is specifically designed for time-series analysis where you need to join records based on the closest preceding (or exact) timestamp. It is highly optimized for this exact scenario, avoiding the massive performance overhead of a CROSS JOIN or complex window functions.
