LAG function Oracle

Published on by LakshmiSaahul,Dhana Royal

LAG function Oracle


by sqlandplsql

LAG function used to find previous row value within the same table. It is an example of analytical function.

Syntax :-

LAG(column, context, default) over partition clause

context – number of rows to go backward. Default is 1

default – default value returns. Default is null

Advertising
To be informed of the latest articles, subscribe:
Comment on this post