LAG
You are viewing an old version of this article. View
the current version here.
MariaDB starting with 10.2.2
The LAG() function was first introduced with other window functions in MariaDB 10.2.
Contents
Syntax
LAG (expr[, offset]) OVER ( [ PARTITION BY partition_expression ] [ ORDER BY order_list ] )
The LAG function accesses data from a previous row in the same result set without the need for a self-join.
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.