Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

avoid distinct clause in the query

692864Jul 17 2009 — edited Jul 17 2009
hi i have a query from a single table using distinct clause and has columns (a,b,c,d,e,f,g,h,i)

eg: select distinct a,b ,c,d from table
where a<>0 and b<>0 and c<>0 and d<>0 and e=o and f=0 and g=0 and h=0 and i=0 ;

when i see the execution plan with out distinct... it performs a bit faster.

how do i remove distinct clause and make the query perform better

this particular query is used as inline view in my vieiw . it is used in from clause .

please suggest

second question.... iam getting bitmap index to rowid conversion ...is this good? does it hamper performance . how to avoid this?

regards
raj

Edited by: raj_fresher on Jul 17, 2009 7:48 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 14 2009
Added on Jul 17 2009
13 comments
4,657 views