Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: FIRST_ROWS(n) with nested queries
I think it is materializing the inline view in the second case before
it gets to the outer query.
This is the reason why the HASH JOIN is being used in the second case.
In the first case, it is sufficient if it gets the first 20 rows, so
it is using INDEX SCAN DESCENDING and getting the first rows according
to the order.
regards
Srivenu
Received on Wed Feb 11 2004 - 23:45:14 CST
![]() |
![]() |