home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / oracle / 2936 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.2 KB

  1. Path: sparky!uunet!lhdsy1!nntpserver.chevron.com!abds7.aberdeen.chevron.com!epeas
  2. From: epeas@abds7.aberdeen.chevron.com (John Peach)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: Q: Duplicate records
  5. Message-ID: <1993Jan25.084837@abds7.aberdeen.chevron.com>
  6. Date: 25 Jan 93 08:48:37 GMT
  7. References: <1993Jan23.124513.26942@kaija.spb.su>
  8. Sender: news@nntpserver.chevron.com (USENET News System)
  9. Reply-To: epeas@aberdeen.chevron.com
  10. Organization: Chevron (UK) Ltd.
  11. Lines: 21
  12. Disclaimer: The opinions expressed are mine; _not_ those of        
  13.             the company I work for.
  14.  
  15. In article <1993Jan23.124513.26942@kaija.spb.su>, adn@kaija.spb.su (ADN communication group) writes:
  16. |> Does anyone know how to remove duplicated records from existing
  17. |> Oracle table? Records may not be duplicated in all fields.
  18.  
  19.  
  20. DELETE FROM &TABLE
  21. WHERE ROWID NOT IN
  22.    (SELECT MAX(ROWID) FROM &TABLE
  23.     GROUP BY &DUPLICATE_COLUMNS
  24.    )
  25. /
  26.  
  27. |> --
  28. |> Nick Maximov
  29. |> St. Petersburg, Russia
  30.  
  31. -- 
  32.                                John Peach
  33.                            Chevron (UK) Ltd.
  34.    Ninian House, Crawpeel Road, Altens, Aberdeen, AB1 4LG, Scotland.
  35.    Internet: epeas@aberdeen.chevron.com       Phone: +44 224 242637
  36.