Problems / LAG & LEAD Comparison / Editorial
LAG and LEAD are offset functions that access rows at a fixed distance from the current row.
LAG
LEAD
ticker
date
Boundary rows return NULL because there is no preceding/following row to reference.
NULL
Solve LAG & LEAD Comparison yourself →