<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'"how to find duplicate records in oracle data base"' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread '"how to find duplicate records in oracle data base"' posted on the 'Internet Development' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Thu, 20 Jun 2013 03:52:27 -0700</pubDate>
    <lastBuildDate>Thu, 20 Jun 2013 03:52:27 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>"how to find duplicate records in oracle data base"</title>
      <link>http://www.programmersheaven.com/mb/internet/308689/308689/how-to-find-duplicate-records-in-oracle-data-base/</link>
      <description>I would like to know the oracle (SQL) query to find the duplicate records in a oracle data base.&lt;br /&gt;
Kindly help me.&lt;br /&gt;
Thanks in advance,&lt;br /&gt;
Bye&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/internet/308689/308689/how-to-find-duplicate-records-in-oracle-data-base/</guid>
      <pubDate>Wed, 13 Jul 2005 02:55:12 -0700</pubDate>
      <category>Internet Development</category>
    </item>
    <item>
      <title>Re: "how to find duplicate records in oracle data base"</title>
      <link>http://www.programmersheaven.com/mb/internet/308689/325779/re-how-to-find-duplicate-records-in-oracle-data-base/#325779</link>
      <description>: I would like to know the oracle (SQL) query to find the duplicate records in a oracle data base.&lt;br /&gt;
: Kindly help me.&lt;br /&gt;
: Thanks in advance,&lt;br /&gt;
: Bye&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
By duplicate records I presume you mean records with similar keys?&lt;br /&gt;
(Which begs the question as to why your primary key constraint didn't kick out the duplicate entries!)&lt;br /&gt;
&lt;br /&gt;
Try this:-&lt;br /&gt;
&lt;br /&gt;
select *&lt;br /&gt;
from   table&lt;br /&gt;
group by key1, key2, ..., keyN&lt;br /&gt;
having count (*) &amp;gt; 1;&lt;br /&gt;
&lt;br /&gt;
If you want to list them for a data cleanup excercise add an order by clause to list them in the order you want.&lt;br /&gt;
&lt;br /&gt;
Gothmordrin&lt;br /&gt;
Think it through first - then pester someone.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/internet/308689/325779/re-how-to-find-duplicate-records-in-oracle-data-base/#325779</guid>
      <pubDate>Thu, 05 Jan 2006 12:40:03 -0700</pubDate>
      <category>Internet Development</category>
    </item>
    <item>
      <title>Re: "how to find duplicate records in oracle data base"</title>
      <link>http://www.programmersheaven.com/mb/internet/308689/386167/re-how-to-find-duplicate-records-in-oracle-data-base/#386167</link>
      <description>U can find and delete the Duplicate files&lt;br /&gt;
&lt;br /&gt;
delete from test a&lt;br /&gt;
where rowid &amp;lt;&amp;gt; ( select max(rowid)&lt;br /&gt;
from test b&lt;br /&gt;
where a.sno = b.sno&lt;br /&gt;
and a.sname = b.sname )&lt;br /&gt;
&lt;br /&gt;
This querry will find duplicate rows and delete those.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Pasha&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/internet/308689/386167/re-how-to-find-duplicate-records-in-oracle-data-base/#386167</guid>
      <pubDate>Sat, 21 Feb 2009 23:58:45 -0700</pubDate>
      <category>Internet Development</category>
    </item>
    <item>
      <title>Re: "how to find duplicate records in oracle data base"</title>
      <link>http://www.programmersheaven.com/mb/internet/308689/391695/re-how-to-find-duplicate-records-in-oracle-data-base/#391695</link>
      <description>This way worked for me:&lt;br /&gt;
&lt;br /&gt;
SELECT COL_TO_CHECK, COUNT(COL_TO_CHECK)&lt;br /&gt;
FROM TABLE_NAME&lt;br /&gt;
GROUP BY COL_TO_CHECK&lt;br /&gt;
HAVING COUNT(COL_TO_CHECK) &amp;gt; 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/internet/308689/391695/re-how-to-find-duplicate-records-in-oracle-data-base/#391695</guid>
      <pubDate>Fri, 29 May 2009 08:42:00 -0700</pubDate>
      <category>Internet Development</category>
    </item>
    <item>
      <title>This post has been deleted.</title>
      <link>http://www.programmersheaven.com/mb/internet/308689/421740/this-post-has-been-deleted/#421740</link>
      <description>This post has been deleted.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/internet/308689/421740/this-post-has-been-deleted/#421740</guid>
      <pubDate>Mon, 14 Feb 2011 09:51:18 -0700</pubDate>
      <category>Internet Development</category>
    </item>
  </channel>
</rss>