My Oracle Support Banner

Query Produces Different Result Sets Using Index Or Full Table Scan (Query Uses OR EXPANSION) (Doc ID 2432326.1)

Last updated on AUGUST 14, 2018

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


When the last predicate is OR ( T.plannedstate < 1 ) correct results.

When the last predicate is ( T.plannedstate = 0 ), wrong results (fewer rows are returned).

The value for T.PLANNEDSTATE is either 0 or 2, and therefore the 2 queries should both return the same result set.




No changes


To view full details, 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 a vibrant support community of peers and Oracle experts.