Inconsistent Results on SQL with Analytic Functions ROW_NUMBER,FIRST_VALUE,LAST_VALUE

(Doc ID 463192.1)

Last updated on OCTOBER 26, 2017

Applies to:

Oracle Database - Enterprise Edition - Version to [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