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: ques: Removing Duplicates

Re: ques: Removing Duplicates

From: Muli Koppel <mkoppel_at_barakitc.co.il>
Date: 1997/11/23
Message-ID: <658l2o$bt5@news.barakitc.co.il>#1/1

dean wrote in message <347795B7.45F3_at_logical-approach.com>...
>How would I structure an SQL query that would remove duplicates from an
>oracle database? Thanks.

delete from tname t1
where rowid not in (select

                                max(rowid)
                                from tname t2
                                where t1.key=t2.key);

Yours,

Muli Koppel Received on Sun Nov 23 1997 - 00:00:00 CST

Original text of this message

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