<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: counting dupes in Access</title>
	<link>http://cleverhack.com/2005/02/27/counting-dupes-in-access/</link>
	<description>A Blog About Technology, Search Engine Optimization (SEO), Internet Marketing And More.</description>
	<pubDate>Fri, 21 Nov 2008 15:07:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: Arthur</title>
		<link>http://cleverhack.com/2005/02/27/counting-dupes-in-access/#comment-910</link>
		<pubDate>Mon, 28 Feb 2005 01:44:41 +0000</pubDate>
		<guid>http://cleverhack.com/2005/02/27/counting-dupes-in-access/#comment-910</guid>
					<description>&lt;code&gt;
  select invoice_number, count(invoice_number) from allthoseinvoices_eh
  group by invoice_number
  order by invoice_number;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code><br />
  select invoice<em>number, count(invoice</em>number) from allthoseinvoices<em>eh<br />
  group by invoice</em>number<br />
  order by invoice_number;<br />
</code></p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Dave</title>
		<link>http://cleverhack.com/2005/02/27/counting-dupes-in-access/#comment-909</link>
		<pubDate>Mon, 28 Feb 2005 00:55:08 +0000</pubDate>
		<guid>http://cleverhack.com/2005/02/27/counting-dupes-in-access/#comment-909</guid>
					<description>My first guess would be something like

select somefield, count(*) from sometable group by somefield having count(*) &gt; 1

Instead of &quot;somefield&quot;, you could use a bunch of fields and it will tell you how many times each combination occurs.  The having clause restricts it to combinations that occur more than once.</description>
		<content:encoded><![CDATA[<p>My first guess would be something like</p>
<p>select somefield, count(<em>) from sometable group by somefield having count(</em>) > 1</p>
<p>Instead of &#8220;somefield&#8221;, you could use a bunch of fields and it will tell you how many times each combination occurs.  The having clause restricts it to combinations that occur more than once.</p>
]]></content:encoded>
				</item>
</channel>
</rss>
