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 -> Re: how to extract duplicates from a hugh database quickly

Re: how to extract duplicates from a hugh database quickly

From: Alexei VORONOV <alexei_voronov_at_yahoo.com>
Date: Sat, 27 Oct 2001 15:16:57 +0200
Message-ID: <9recap$82k$1@wanadoo.fr>


Did you try such select

select MAX(D), V1, V2 from <Table> group by V1, V2;

It must return exactly what you want, the only problem may be not so fast. But you may try to make experiment with different indexes.

"DCCoolBreeze" <DelawareKD_at_starpower.net> a écrit dans le message news: 9r4kem$huu$1_at_bob.news.rcn.net...
> I am working with a table that contains 100,000,000 records. I want to
> quickly filter out all of the duplicate records (w/o checking the date)
and
> then display the maximum date for the duplicates. Example
>
> rec1 1/1/01 fieldValue1 fieldValue2
> rec x 12/30/00 fieldValue1 fieldValue2
> ...
>
> Create a recordset listing the latest (relative to the date) duplicate
> records quickly.
>
> Any ideas
>
>
Received on Sat Oct 27 2001 - 08:16:57 CDT

Original text of this message

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