Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Does IN perform a implicit distinct ?

Re: Does IN perform a implicit distinct ?

From: <sybrandb_at_yahoo.com>
Date: 31 May 2005 04:05:27 -0700
Message-ID: <1117537527.645105.151940@g14g2000cwa.googlegroups.com>


The IN operator refers to a *SET*. According to relational calculus, a set never has duplicates!
So the distinct in your first statement is, by design, fully redundant. In the past (pre 9i), the optimizer definitely wasn't smart enough to notice the distinct was redundant, so it performed two sorts.

One would wish people would do something to learn relational concepts!

--
Sybrand Bakker,
Senior Oracle DBA
Received on Tue May 31 2005 - 06:05:27 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US