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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Script that will remove redundant rows from table

Re: Script that will remove redundant rows from table

From: Rachel Carmichael <carmichr_at_hotmail.com>
Date: Tue, 15 May 2001 13:39:25 -0700
Message-ID: <F001.00303EE8.20010515111619@fatcity.com>

I use this one that Araplan posted a while back:

delete from &table_name a where rowid > (select min(rowid) from &&table_name b
where a.&column_name=b.&&column_name)
/

>From: "Haskins, Ed" <Ed.Haskins_at_VerizonWireless.com>
>Reply-To: ORACLE-L_at_fatcity.com
>To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
>Subject: Script that will remove redundant rows from table
>Date: Tue, 15 May 2001 09:40:47 -0800
>
>A few months ago I remember seeing a script that enabled the removal of
>redundant rows in a table. Can someone please forward or point me to such
>a
>script.
>
>I have an Oracle Names server that stores the database connect descriptors
>in a table within the Region Database. I've loaded these connect
>descriptors from many SQLNET.ora files throughout the enterprise. My
>problem is that there exists duplicates from the multiple SQLNET.ora files.
>I really want to clean this up so that only one entry per connect
>descriptor
>exists. I think that a generic script for any table will work in this
>situation.
>
>Thanks,
>Ed Haskins
>Oracle DBA
>Verizon Wireless



Get your FREE download of MSN Explorer at http://explorer.msn.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rachel Carmichael
  INET: carmichr_at_hotmail.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue May 15 2001 - 15:39:25 CDT

Original text of this message

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