OCI-35218
(SNSYN122) The format of LEAD and the LAG functions is:
function(time-series nperiods time-dimension [STATUS|NOSTATUS])
function(time-series nperiods time-dimension [STATUS|NOSTATUS])
Cause
The syntax of the LAG or LEAD function was invalid.
Action
Check the error message text or Oracle documentation for the correct syntax.