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: "Seek and destroy" duplicate entries

Re: "Seek and destroy" duplicate entries

From: Alex <dead.man.walking_at_gmx.de>
Date: 16 Oct 2006 05:48:08 -0700
Message-ID: <1161002888.185168.76910@e3g2000cwe.googlegroups.com>


Robert Klemme schrieb:
> 1. You can use the min(rowid) for every unique combination to delete all
> superfluous records.
>
> However, I find these approaches more attractive:
>
> 2. Use a staging table and move the data from there to the target table
> that has proper constraints with a SELECT DISTINCT or GROUP BY. (Or is
> your import table the staging table already?)
>
> 3. Filter during import to avoid duplicates during insertion (for
> example by having SQL*Loader reject records that violate constraints).
>
> Kind regards
>
> robert

Hello Robert,

thanks for your tips!
@2: The table I'm talking of ist already a staging table. @3: For various reasons there are no constraints on the staging tables defined at all.
So I stick to the rowid-method.

Thank you!
Alex Sauer Received on Mon Oct 16 2006 - 07:48:08 CDT

Original text of this message

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