Coupang interview question

What are LEAD() and LAG() functions in SQL?

Interview Answer

Anonymous

12 May 2025

LEAD() and LAG() are window functions used to access data from a previous or next row in the result set, useful for comparing sequential data.