 




<?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: Column with Duplicate Values</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/column-with-duplicate-values/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/column-with-duplicate-values/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 05:05:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: The Most-Watched IT Questions: January 18, 2012 - ITKE Community Blog</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/column-with-duplicate-values/#comment-101874</link>
		<dc:creator>The Most-Watched IT Questions: January 18, 2012 - ITKE Community Blog</dc:creator>
		<pubDate>Thu, 19 Jan 2012 20:33:28 +0000</pubDate>
		<guid isPermaLink="false">#comment-101874</guid>
		<description><![CDATA[[...] 8. Carlosdl, TomLiotta, and Lorit give their ideas about columns with duplicate values. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] 8. Carlosdl, TomLiotta, and Lorit give their ideas about columns with duplicate values. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lorit</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/column-with-duplicate-values/#comment-101508</link>
		<dc:creator>lorit</dc:creator>
		<pubDate>Wed, 11 Jan 2012 12:45:27 +0000</pubDate>
		<guid isPermaLink="false">#comment-101508</guid>
		<description><![CDATA[Answer Wiki:
This doesn&#039;t fit too good - but the numbers beginning with 159 are from the FMV column. There are two records with the same amount 5880 - it only returns one record because the value is the same. How can I get around this without having it generate all duplicates?


Dist Status Name Id
Code Date Number Parcel Name Year House Nr Street Address line 2 City St Zip # MH # Boats FMV
---- ---------- ------- ------- ------------------------------ ---- ---------- ----------------- -------------------- --------------- -- ----- ---- ------- ----------
1159 2011/08/23 378207 0007127 BARRIER ISLAND INC 2011 328 FRONT ST BEAUFORT NC 28516 0 7 50
0 7 159
0 7 2100
0 7 5880
0 7 9180
0 7 9286
0 7 11360
0 7 19344
0 7 54164
----------
111523
==========
111523]]></description>
		<content:encoded><![CDATA[<p>Answer Wiki:<br />
This doesn&#8217;t fit too good &#8211; but the numbers beginning with 159 are from the FMV column. There are two records with the same amount 5880 &#8211; it only returns one record because the value is the same. How can I get around this without having it generate all duplicates?</p>
<p>Dist Status Name Id<br />
Code Date Number Parcel Name Year House Nr Street Address line 2 City St Zip # MH # Boats FMV<br />
&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;- &#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212; &#8212; &#8212;&#8211; &#8212;- &#8212;&#8212;- &#8212;&#8212;&#8212;-<br />
1159 2011/08/23 378207 0007127 BARRIER ISLAND INC 2011 328 FRONT ST BEAUFORT NC 28516 0 7 50<br />
0 7 159<br />
0 7 2100<br />
0 7 5880<br />
0 7 9180<br />
0 7 9286<br />
0 7 11360<br />
0 7 19344<br />
0 7 54164<br />
&#8212;&#8212;&#8212;-<br />
111523<br />
==========<br />
111523</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/column-with-duplicate-values/#comment-101435</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Mon, 09 Jan 2012 23:48:37 +0000</pubDate>
		<guid isPermaLink="false">#comment-101435</guid>
		<description><![CDATA[&lt;i&gt;...when the column C. PC_FMV has two records with the same value...&lt;/i&gt;

As Carlosdl says, DISTINCT is going to eliminate duplicate rows. That&#039;s one of its fundamental purposes.

If you need those two rows both to show up, you will probably need to include something else from &quot;QS36F&quot;/&quot;T16.PCTG&quot; C that distinguishes the two rows. One complication is that any additional column from that file might cause every row to be unique which could mess up the rest of DISTINCT.

You might try creating something like a DISTINCT  VIEW over the other three files without including &quot;QS36F&quot;/&quot;T16.PCTG&quot; C. And then use that VIEW to join to &quot;QS36F&quot;/&quot;T16.PCTG&quot; C. That would effectively be a &#039;table expression&#039; which is a possible alternative. The VIEW (or &#039;table expression&#039;) would be DISTINCT by itself; but when joined to &quot;QS36F&quot;/&quot;T16.PCTG&quot; C, it could give duplicates in the final result set. The DISTINCT should apply only to the three files in the VIEW.

Without knowing the possible data, it&#039;s hard to say whether that would work or not.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>&#8230;when the column C. PC_FMV has two records with the same value&#8230;</i></p>
<p>As Carlosdl says, DISTINCT is going to eliminate duplicate rows. That&#8217;s one of its fundamental purposes.</p>
<p>If you need those two rows both to show up, you will probably need to include something else from &#8220;QS36F&#8221;/&#8221;T16.PCTG&#8221; C that distinguishes the two rows. One complication is that any additional column from that file might cause every row to be unique which could mess up the rest of DISTINCT.</p>
<p>You might try creating something like a DISTINCT  VIEW over the other three files without including &#8220;QS36F&#8221;/&#8221;T16.PCTG&#8221; C. And then use that VIEW to join to &#8220;QS36F&#8221;/&#8221;T16.PCTG&#8221; C. That would effectively be a &#8216;table expression&#8217; which is a possible alternative. The VIEW (or &#8216;table expression&#8217;) would be DISTINCT by itself; but when joined to &#8220;QS36F&#8221;/&#8221;T16.PCTG&#8221; C, it could give duplicates in the final result set. The DISTINCT should apply only to the three files in the VIEW.</p>
<p>Without knowing the possible data, it&#8217;s hard to say whether that would work or not.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/column-with-duplicate-values/#comment-101429</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Mon, 09 Jan 2012 21:58:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-101429</guid>
		<description><![CDATA[If the duplicate data in C.PC_FMV causes the whole returned record to be duplicate, then the DISTINCT keyword will remove it from the result.  But I&#039;m not sure if that is what you meant.  If not, I would recommend posting some example data with its expected results.]]></description>
		<content:encoded><![CDATA[<p>If the duplicate data in C.PC_FMV causes the whole returned record to be duplicate, then the DISTINCT keyword will remove it from the result.  But I&#8217;m not sure if that is what you meant.  If not, I would recommend posting some example data with its expected results.</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 6/9 queries in 0.012 seconds using memcached
Object Caching 310/313 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 07:41:02 -->