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

Home -> Community -> Usenet -> c.d.o.misc -> alternative to select distinct syntax

alternative to select distinct syntax

From: <Kelvin>
Date: 1997/05/26
Message-ID: <5mc63b$585@svdns1.ubinet.ubs.com>#1/1

Hi,

I have a query which joins 5 tables and returns about 1 Mio records including duplicates.
When i use a "select distinct" it returns about 5000 records.

Obviously a large unique sort is taking place and this is taking a long time
about 10 mins. When i remove the distinct clause the query is instant.
Are there any alternative syntax to getting this query to run fast? Does this db have a normalisation problem?

ps ( The sort area size is already really large)

thanks
Kelvin Received on Mon May 26 1997 - 00:00:00 CDT

Original text of this message

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