home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!lhdsy1!nntpserver.chevron.com!abds7.aberdeen.chevron.com!epeas
- From: epeas@abds7.aberdeen.chevron.com (John Peach)
- Newsgroups: comp.databases.oracle
- Subject: Re: Q: Duplicate records
- Message-ID: <1993Jan25.084837@abds7.aberdeen.chevron.com>
- Date: 25 Jan 93 08:48:37 GMT
- References: <1993Jan23.124513.26942@kaija.spb.su>
- Sender: news@nntpserver.chevron.com (USENET News System)
- Reply-To: epeas@aberdeen.chevron.com
- Organization: Chevron (UK) Ltd.
- Lines: 21
- Disclaimer: The opinions expressed are mine; _not_ those of
- the company I work for.
-
- In article <1993Jan23.124513.26942@kaija.spb.su>, adn@kaija.spb.su (ADN communication group) writes:
- |> Does anyone know how to remove duplicated records from existing
- |> Oracle table? Records may not be duplicated in all fields.
-
-
- DELETE FROM &TABLE
- WHERE ROWID NOT IN
- (SELECT MAX(ROWID) FROM &TABLE
- GROUP BY &DUPLICATE_COLUMNS
- )
- /
-
- |> --
- |> Nick Maximov
- |> St. Petersburg, Russia
-
- --
- John Peach
- Chevron (UK) Ltd.
- Ninian House, Crawpeel Road, Altens, Aberdeen, AB1 4LG, Scotland.
- Internet: epeas@aberdeen.chevron.com Phone: +44 224 242637
-