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: SQL PROBLEM for duplicate rows..

Re: SQL PROBLEM for duplicate rows..

From: Burçin Üstün Kılıç <bustun_at_havelsan.com.tr>
Date: Fri, 25 May 2001 04:14:48 -0700
Message-ID: <F001.0030EC2B.20010525034530@fatcity.com>

I am sorry I made a mistake in naming . Correct one is below: delete from table_name where rowid not in (select maxrowid from (select  column1,column2, max(rowid) maxrowid from table_name group by column1,column2));

> I think this query eliminates the duplicated rows:
>
> delete from table_name where rowid not in (select maxrowid from (select
> column1,column2, max(rowid) maxrowid from den group by column1,column2));
>
> ----- Original Message -----
> To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
> Sent: Friday, May 25, 2001 1:01 PM
>
>
> > Hi
> >
> > Table A got some duplicated rows.. The requirement is to delete the
> > duplicate records by maintaing one copy..
> > Is it manageable thru single query? or have to go for PL/SQL procedure?
> >
> > Pl. send me ur valuable inputs.
> >
> > Saravanakumar
> >
> >
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.com
> > --
> > Author: N. SARAVANA KUMAR
> > INET: saravanakumar.n_at_tatainfotech.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).
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: =?iso-8859-1?B?QnVy52luINxzdPxuIEv9bP3n?=
> INET: bustun_at_havelsan.com.tr
>
> 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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: =?iso-8859-1?B?QnVy52luINxzdPxuIEv9bP3n?=
  INET: bustun_at_havelsan.com.tr

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 Fri May 25 2001 - 06:14:48 CDT

Original text of this message

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