Inconsistent Results on SQL with Analytic Functions ROW_NUMBER,FIRST_VALUE,LAST_VALUE (Doc ID 463192.1)

Last updated on JULY 21, 2008

Applies to:

Oracle Server - Enterprise Edition - Version: 8.1 to 11.1
This problem can occur on 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