Skip to content
Advertisement

ORA-00904: “PREV_TEMP”: invalid identifier with LAG function

Whats is wrong with this query?

It returns: ORA-00904: "PREV_TEMP": invalid identifier

SQL schema:

Advertisement

Answer

You cannot use directly, but need to use in a subquery to be able to use the returning value from analytic function

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement