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: !! URGENT - need Help !!

Re: !! URGENT - need Help !!

From: Alan D. Mills <alanmNOSPAM_at_uk.europe.mcd.mot.com>
Date: Mon, 12 Oct 1998 11:49:28 +0100
Message-ID: <6vsmqn$m1v$1@schbbs.mot.com>


Won't this SQL only remove one copy and not all?

--
Alan D. Mills

dvsingh1_at_my-dejanews.com wrote in message <6vsg61$fd2$1_at_nnrp1.dejanews.com>...
>Hi..
> Simply run this query to remove the duplicae entries......
>
> delete from <table_name>
> where rowid IN ( select MIN(ROWID) from <tabe_name>
> group by <field_names>
> having count(*)>1);
>
Received on Mon Oct 12 1998 - 05:49:28 CDT

Original text of this message

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