Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Learning more about and reading 10053 trace files
Brandon
Just for completeness...
> Yes, the DISTINCT (sort & filter) happens at the end, but the
> difference is that a DISTINCT requires all rows to be fetched,
> sorted and filtered before it can return the first row - so it can't
> return the first row until it has processed all rows.
Be careful, not in all situations all data need to be processed before the first row is returned. Here an example...
SQL> select distinct ctr_code from addresses;
Execution Plan
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Sep 05 2006 - 13:56:00 CDT
![]() |
![]() |