DB
FunctionsWindow

lag

Returns the value of an expression evaluated on a row that is a given number of rows before the current row within the window partition. An optional default is returned when the offset is out of ra…

lag(…) → Dynamic

Kind · window

Returns the value of an expression evaluated on a row that is a given number of rows before the current row within the window partition. An optional default is returned when the offset is out of range.

Part of the Window family.