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 18.104.22.168 to 22.214.171.124 [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
Million Knowledge Articles and hundreds of Community platforms