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: Q: Find end delete duplicate values?

Re: Q: Find end delete duplicate values?

From: JohnnyD331 <johnnyd331_at_aol.com>
Date: 8 Feb 1999 03:26:54 GMT
Message-ID: <19990207222654.25756.00001564@ng15.aol.com>


Try this :

delete from tablename t1, tablename t2
where t1.indexed_field = t2.indexed_field and t1.indexed_field_2 = t2.indexed_field_2 and ... (repeat for all of the indexed fields) and t2.rowid > t1.rowid

by indexed_field I am referring to the fields which will define your unique index (or, the ones that define your duplicate rows)

--John Received on Sun Feb 07 1999 - 21:26:54 CST

Original text of this message

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