<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" 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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>NewPush &#187; Oracle</title> <atom:link href="http://newpush.com/tag/oracle/feed/" rel="self" type="application/rss+xml" /><link>http://newpush.com</link> <description>Server Hosting, Data Warehouse Hosting, Collaboration</description> <lastBuildDate>Fri, 20 Apr 2012 10:25:44 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>How to delete records with duplicate fields, such as dupplicate emails?</title><link>http://newpush.com/2009/05/how-to-delete-records-with-duplicate-fields-such-as-dupplicate-emails/</link> <comments>http://newpush.com/2009/05/how-to-delete-records-with-duplicate-fields-such-as-dupplicate-emails/#comments</comments> <pubDate>Mon, 04 May 2009 02:09:32 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[DB2]]></category> <category><![CDATA[IBM]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[Oracle]]></category> <category><![CDATA[PostgreSQL]]></category><guid isPermaLink="false">http://www.wdream.com/?p=166</guid> <description><![CDATA[To delete records where only a field is duplicated, we can use a similar technique to the general duplicate removal technique: CREATE TABLE temp AS SELECT DISTINCT ON (email) * FROM table_to_deduplicate; DROP TABLE table_to_deduplicate; ALTER TABLE temp RENAME TO &#8230; <a href="http://newpush.com/2009/05/how-to-delete-records-with-duplicate-fields-such-as-dupplicate-emails/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>To delete records where only a field is duplicated, we can use a similar technique to the general duplicate removal technique:</p><pre>
CREATE TABLE temp AS SELECT DISTINCT ON (email) * FROM table_to_deduplicate;
DROP TABLE table_to_deduplicate;
ALTER TABLE temp RENAME TO table_to_deduplicate;
</pre><p>Be mindful of the fact that this process will not preserve the constraints on the original table. So if you have indexes, NOT NULL attributes, primary keys, foreign keys, you&#8217;ll have to recreate them.</p> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2009/05/how-to-delete-records-with-duplicate-fields-such-as-dupplicate-emails/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to delete dupplicate records in DB2, Oracle, MySQL, and PostgreSQL</title><link>http://newpush.com/2009/05/how-to-delete-dupplicate-records-in-db2-oracle-mysql-and-postgresql/</link> <comments>http://newpush.com/2009/05/how-to-delete-dupplicate-records-in-db2-oracle-mysql-and-postgresql/#comments</comments> <pubDate>Mon, 04 May 2009 02:06:59 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[DB2]]></category> <category><![CDATA[IBM]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[Oracle]]></category> <category><![CDATA[PostgreSQL]]></category><guid isPermaLink="false">http://www.wdream.com/?p=164</guid> <description><![CDATA[To delete dupplicate records in SQL, the following sequence of commands will do the trick: CREATE TABLE temp AS SELECT DISTINCT * FROM table_to_deduplicate; DROP TABLE table_to_deduplicate; ALTER TABLE temp RENAME TO table_to_deduplicate; Be mindful of the fact that this &#8230; <a href="http://newpush.com/2009/05/how-to-delete-dupplicate-records-in-db2-oracle-mysql-and-postgresql/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>To delete dupplicate records in SQL, the following sequence of commands will do the trick:</p><pre>
CREATE TABLE temp AS SELECT DISTINCT * FROM table_to_deduplicate;
DROP TABLE table_to_deduplicate;
ALTER TABLE temp RENAME TO table_to_deduplicate;
</pre><p>Be mindful of the fact that this process will not preserve the constraints on the original table. So if you have indexes, NOT NULL attributes, primary keys, foreign keys, you&#8217;ll have to recreate them.</p> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2009/05/how-to-delete-dupplicate-records-in-db2-oracle-mysql-and-postgresql/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: newpush.com @ 2012-05-22 12:37:31 by W3 Total Cache -->
