 




<?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: SQL</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/sql-10/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-10/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 13:28:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: maxxx13</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-10/#comment-55756</link>
		<dc:creator>maxxx13</dc:creator>
		<pubDate>Mon, 18 Aug 2008 15:21:21 +0000</pubDate>
		<guid isPermaLink="false">#comment-55756</guid>
		<description><![CDATA[I ran into this issue recently and solved it using a select distinct statement against all the columns to make a new table with unique rows as a materialized query.   In my case I was then able to confirm the contents of the new table, delete the original and rename the new table.  It would be more complicated if there are dependencies on the table, though.  

SELECT DISTINCT (column1, column 2, column 3, column 4,..., column n)
FROM Table

I&#039;d also recommend adding a primary key.]]></description>
		<content:encoded><![CDATA[<p>I ran into this issue recently and solved it using a select distinct statement against all the columns to make a new table with unique rows as a materialized query.   In my case I was then able to confirm the contents of the new table, delete the original and rename the new table.  It would be more complicated if there are dependencies on the table, though.  </p>
<p>SELECT DISTINCT (column1, column 2, column 3, column 4,&#8230;, column n)<br />
FROM Table</p>
<p>I&#8217;d also recommend adding a primary key.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrdenny</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-10/#comment-55708</link>
		<dc:creator>mrdenny</dc:creator>
		<pubDate>Thu, 14 Aug 2008 19:23:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-55708</guid>
		<description><![CDATA[Check out my SQL Server blog &quot;&lt;a href=&quot;http://itknowledgeexchange.techtarget.com/sql-server/&quot;&gt;SQL Server with Mr Denny&lt;/a&gt;&quot; for more SQL Server information.]]></description>
		<content:encoded><![CDATA[<p>Check out my SQL Server blog &#8220;<a href="http://itknowledgeexchange.techtarget.com/sql-server/">SQL Server with Mr Denny</a>&#8221; for more SQL Server information.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.026 seconds using memcached
Object Caching 281/287 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 14:32:02 -->