Inconsistent Results on SQL with Analytic Functions ROW_NUMBER,FIRST_VALUE,LAST_VALUE
Last updated on OCTOBER 26, 2017
Applies to:Oracle Database - Enterprise Edition - Version 126.96.36.199 to 188.8.131.52 [Release 8.1.5 to 11.1]
Information in this document applies to any platform.
When SQL statements use analytic functions ROW_NUMBER, FIRST_VALUE or LAST_VALUE it is sometimes possible that inconsistent results are produced.
The same SQL executed repeatedly on the same unchanging table data can produce different results.
This can be mistaken for an intermittent wrong results bug when in fact it could be a SQL coding issue.
This type of problem can occur when coding new SQL statements using the above analytic functions.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms