<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Oracle: Deleting Duplicate Rows Efficiently</title>
	<atom:link href="http://www.pythian.com/news/209/oracle-deleting-duplicate-rows-efficiently/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/209/oracle-deleting-duplicate-rows-efficiently/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Sat, 20 Mar 2010 20:27:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: true</title>
		<link>http://www.pythian.com/news/209/oracle-deleting-duplicate-rows-efficiently/#comment-220235</link>
		<dc:creator>true</dc:creator>
		<pubDate>Thu, 19 Jun 2008 01:49:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/209/oracle-deleting-duplicate-rows-efficiently#comment-220235</guid>
		<description>Select alteranate rows

select * from Table where rowid%2=0;</description>
		<content:encoded><![CDATA[<p>Select alteranate rows</p>
<p>select * from Table where rowid%2=0;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhijeet</title>
		<link>http://www.pythian.com/news/209/oracle-deleting-duplicate-rows-efficiently/#comment-2611</link>
		<dc:creator>Abhijeet</dc:creator>
		<pubDate>Fri, 15 Sep 2006 08:49:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/209/oracle-deleting-duplicate-rows-efficiently#comment-2611</guid>
		<description>Hi,

Is it possible to delete alternate rows from a table?
If yes, can some one send me the query?

Thanks
Abhijeet.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Is it possible to delete alternate rows from a table?<br />
If yes, can some one send me the query?</p>
<p>Thanks<br />
Abhijeet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: procter</title>
		<link>http://www.pythian.com/news/209/oracle-deleting-duplicate-rows-efficiently/#comment-263</link>
		<dc:creator>procter</dc:creator>
		<pubDate>Mon, 29 May 2006 13:34:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/209/oracle-deleting-duplicate-rows-efficiently#comment-263</guid>
		<description>I like using the LEAD function, and it works well for removing duplicates, but you need to be sure that every row has exactly one duplicate.  In my test scenario, it performed poorly because I had only a subset of duplicates.  In such systems, you would need to narrow the results to only problem records and also factor in the possibility of one record having multiple duplicates.</description>
		<content:encoded><![CDATA[<p>I like using the LEAD function, and it works well for removing duplicates, but you need to be sure that every row has exactly one duplicate.  In my test scenario, it performed poorly because I had only a subset of duplicates.  In such systems, you would need to narrow the results to only problem records and also factor in the possibility of one record having multiple duplicates.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William Robertson</title>
		<link>http://www.pythian.com/news/209/oracle-deleting-duplicate-rows-efficiently/#comment-260</link>
		<dc:creator>William Robertson</dc:creator>
		<pubDate>Sat, 27 May 2006 23:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/209/oracle-deleting-duplicate-rows-efficiently#comment-260</guid>
		<description>Why not simply

DELETE table_name
WHERE  rowid IN
       ( SELECT LEAD(rowid) OVER (PARTITION BY pk ORDER BY whatever)
         FROM   table_name );</description>
		<content:encoded><![CDATA[<p>Why not simply</p>
<p>DELETE table_name<br />
WHERE  rowid IN<br />
       ( SELECT LEAD(rowid) OVER (PARTITION BY pk ORDER BY whatever)<br />
         FROM   table_name );</p>
]]></content:encoded>
	</item>
</channel>
</rss>
