﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Teradata  / Teradata Database  / Need to delete duplicate records from table / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Fri, 05 Sep 2008 10:32:57 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Need to delete duplicate records from table</title><link>http://www.teradata.com/teradataforum/Topic6634-9-1.aspx</link><description>&lt;br&gt;You can use an insert select statement: &lt;br&gt;&lt;br&gt;insert into t1 select distinct * from t2;&lt;br&gt;&lt;br&gt;where t1 is a set table and t2 is the multiset table with the duplicate rows you want to eliminate. Both tables have the same column definitions. &lt;br&gt;&lt;br&gt;</description><pubDate>Wed, 21 Feb 2007 19:50:29 GMT</pubDate><dc:creator>rgs</dc:creator></item><item><title>RE: Need to delete duplicate records from table</title><link>http://www.teradata.com/teradataforum/Topic6634-9-1.aspx</link><description>Use fastexport 1st to select the rows and then create a flat file of records from the table. And then use fastload to load the records back into the table. Fastload does not load the duplicate records. Your task of eliminating the duplicate rows will be achieved.</description><pubDate>Wed, 21 Feb 2007 02:23:35 GMT</pubDate><dc:creator>ramakrishna_vedantam</dc:creator></item><item><title>RE: Need to delete duplicate records from table</title><link>http://www.teradata.com/teradataforum/Topic6634-9-1.aspx</link><description>Applications cannot reference internal ROWID directly in current releases. (In some releases it may be possible to enable this deprecated functionality for backward compatibility, but since the option will presumably be removed in a future release you should not design around it.)&lt;br&gt;&lt;br&gt;Your supported options are: INSERT into another table (either using GROUP BY or Teradata's SET table functionality to remove duplicates), or do a multi-step process: Identify and "save" one copy of each set of duplicates (e.g. INSERT SELECT with GROUP BY ... HAVING COUNT(*) &gt; 1), DELETE all copies of the duplicate rows, re-INSERT the saved single copies.&lt;br&gt;&lt;br&gt;</description><pubDate>Wed, 21 Feb 2007 00:01:54 GMT</pubDate><dc:creator>Fred Pluebell</dc:creator></item><item><title>RE: Need to delete duplicate records from table</title><link>http://www.teradata.com/teradataforum/Topic6634-9-1.aspx</link><description>Hi Laskar&lt;br&gt;&lt;br&gt;Here is the SQL to delete duplicate records,&lt;br&gt;&lt;br&gt;DELETE FROM TABLE_NAME A&lt;br&gt;WHERE ROWID &lt;&gt; &lt;br&gt;(&lt;br&gt; SELECT MAX(ROWID) or MIN(ROWID) FROM TABLE_NAME B WHERE A.COLUMN_NAME = B.COLUMN_NAME&lt;br&gt;);&lt;br&gt;&lt;br&gt;Stration&lt;br&gt;</description><pubDate>Tue, 20 Feb 2007 21:23:37 GMT</pubDate><dc:creator>Stration</dc:creator></item><item><title>Need to delete duplicate records from table</title><link>http://www.teradata.com/teradataforum/Topic6634-9-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I have many duplicate records in a table. Need to remove or delete these duplicate records from table. So that only one unique record exists. &lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;rlaskar</description><pubDate>Tue, 20 Feb 2007 14:34:22 GMT</pubDate><dc:creator>rlaskar</dc:creator></item></channel></rss>