Hi there,
The LAG analytic function returns values from a previous row in the table. The first row with the previous result set is always NULL.
Is there a way to the values in that row?
STATE_ID PREVIOUS_STATE
---------------------- ----------------------
1 NULL <--------------- How could we get value in this cell too?
3 1
1 3
3 1
1 3
3 1
1 3
3 1
8 rows selected
Thansk and regards,
Indhu