<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Count Duplicate Records &#8211; Rows</title>
	<atom:link href="http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gavin F</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-56809</link>
		<dc:creator>Gavin F</dc:creator>
		<pubDate>Tue, 20 Oct 2009 10:40:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-56809</guid>
		<description>Thank you Pinal &amp; udai, 
 great help in increasing my sql knowledge :).</description>
		<content:encoded><![CDATA[<p>Thank you Pinal &amp; udai,<br />
 great help in increasing my sql knowledge :).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samy</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-56245</link>
		<dc:creator>Samy</dc:creator>
		<pubDate>Tue, 29 Sep 2009 13:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-56245</guid>
		<description>Good solution, many thanks for this.</description>
		<content:encoded><![CDATA[<p>Good solution, many thanks for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: udai</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-56124</link>
		<dc:creator>udai</dc:creator>
		<pubDate>Thu, 24 Sep 2009 12:02:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-56124</guid>
		<description>Hi lutfi

may be this will help you

select user_name,transaction_id, transaction_time from transactions where transaction_time in (select transaction_time from transactions group by transaction_time having count(transaction_time) &gt; 1)</description>
		<content:encoded><![CDATA[<p>Hi lutfi</p>
<p>may be this will help you</p>
<p>select user_name,transaction_id, transaction_time from transactions where transaction_time in (select transaction_time from transactions group by transaction_time having count(transaction_time) &gt; 1)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lutfi</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-54663</link>
		<dc:creator>lutfi</dc:creator>
		<pubDate>Mon, 10 Aug 2009 04:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-54663</guid>
		<description>hi all

can you help me, I want to find transaction with the same minutes on the table transactions 

example case : I have 2 user which has 3 time transaction on the same minutes of the day on my Transaction table 

can you give me the example script please ...send it my email : ifi.lutfi@pln.co.id 

Thanks ...</description>
		<content:encoded><![CDATA[<p>hi all</p>
<p>can you help me, I want to find transaction with the same minutes on the table transactions </p>
<p>example case : I have 2 user which has 3 time transaction on the same minutes of the day on my Transaction table </p>
<p>can you give me the example script please &#8230;send it my email : <a href="mailto:ifi.lutfi@pln.co.id">ifi.lutfi@pln.co.id</a> </p>
<p>Thanks &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-53717</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Wed, 15 Jul 2009 08:38:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-53717</guid>
		<description>This one is a great help however I&#039;ve tried retrieving other fields besides the one I&#039;m counting with duplicate record. How do I do that? This is my script. I can&#039;t seem to include the claim_no, lastname and firstname field. 

SELECT bank_acct, COUNT(*)
	
FROM july09_master_copy 
WHERE cl_status = &#039;z&#039;
 AND rid_ind = &#039;r&#039;
GROUP BY bank_acct
HAVING COUNT(*) &gt;1 
ORDER BY COUNT(*)</description>
		<content:encoded><![CDATA[<p>This one is a great help however I&#8217;ve tried retrieving other fields besides the one I&#8217;m counting with duplicate record. How do I do that? This is my script. I can&#8217;t seem to include the claim_no, lastname and firstname field. </p>
<p>SELECT bank_acct, COUNT(*)</p>
<p>FROM july09_master_copy<br />
WHERE cl_status = &#8216;z&#8217;<br />
 AND rid_ind = &#8216;r&#8217;<br />
GROUP BY bank_acct<br />
HAVING COUNT(*) &gt;1<br />
ORDER BY COUNT(*)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kami</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-53182</link>
		<dc:creator>Kami</dc:creator>
		<pubDate>Tue, 23 Jun 2009 05:32:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-53182</guid>
		<description>i have a data entry system for patient records.  in my system there are several forms through which data is entered in different tables. and there is a form which takes the present condition of the patient (i call it PresentAssessment). now i what i want is when the user enters a new record i want to compare the values of the attributes (database table fields) of the newly entered patient and from all the matching records i want to calculate and return the chance(in terms of %age) of particular disease(s) (stored in PresentAssessment) to newly added patient. e.g. if i have two tables i.e. PatientDrugHistory and PresentAssessment. and say each of them already have 10 records with 10 columns each. now when entering the 11th record in PatientDrugHistory i want to calculte and store how much chances (in terms of %age) exist that this 11th patient is suffereing from disease1 (a column in PresentAssessment). please if anybody can tell me what query to write for this purpose</description>
		<content:encoded><![CDATA[<p>i have a data entry system for patient records.  in my system there are several forms through which data is entered in different tables. and there is a form which takes the present condition of the patient (i call it PresentAssessment). now i what i want is when the user enters a new record i want to compare the values of the attributes (database table fields) of the newly entered patient and from all the matching records i want to calculate and return the chance(in terms of %age) of particular disease(s) (stored in PresentAssessment) to newly added patient. e.g. if i have two tables i.e. PatientDrugHistory and PresentAssessment. and say each of them already have 10 records with 10 columns each. now when entering the 11th record in PatientDrugHistory i want to calculte and store how much chances (in terms of %age) exist that this 11th patient is suffereing from disease1 (a column in PresentAssessment). please if anybody can tell me what query to write for this purpose</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yadav</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-51035</link>
		<dc:creator>yadav</dc:creator>
		<pubDate>Thu, 16 Apr 2009 10:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-51035</guid>
		<description>its really good update its help ful for every one thanks</description>
		<content:encoded><![CDATA[<p>its really good update its help ful for every one thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jai</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-50988</link>
		<dc:creator>Jai</dc:creator>
		<pubDate>Tue, 14 Apr 2009 21:38:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-50988</guid>
		<description>Hey Pinal,

Excellent query ! thanks !</description>
		<content:encoded><![CDATA[<p>Hey Pinal,</p>
<p>Excellent query ! thanks !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-50237</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Mon, 30 Mar 2009 21:58:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-50237</guid>
		<description>If you&#039;d like to get a total count of the duplicates as I needed to do, try returning the above query as a derived table and then do a sum on the count.

SELECT SUM(Duplicates.TotalCount) FROM (SELECT YourColumn, COUNT(*) TotalCount
FROM YourTable
GROUP BY YourColumn
HAVING COUNT(*) &gt; 1) AS Duplicates

My database has over 1200 duplicates. :(</description>
		<content:encoded><![CDATA[<p>If you&#8217;d like to get a total count of the duplicates as I needed to do, try returning the above query as a derived table and then do a sum on the count.</p>
<p>SELECT SUM(Duplicates.TotalCount) FROM (SELECT YourColumn, COUNT(*) TotalCount<br />
FROM YourTable<br />
GROUP BY YourColumn<br />
HAVING COUNT(*) &gt; 1) AS Duplicates</p>
<p>My database has over 1200 duplicates. :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-47230</link>
		<dc:creator>SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Tue, 24 Feb 2009 12:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-47230</guid>
		<description>[...] SQL SERVER - Count Duplicate Records - Rows [...]</description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER &#8211; Count Duplicate Records &#8211; Rows [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MarioSanath(SriLankan)</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-46322</link>
		<dc:creator>MarioSanath(SriLankan)</dc:creator>
		<pubDate>Wed, 04 Feb 2009 12:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-46322</guid>
		<description>SELECT YourColumn, COUNT(*) TotalCount
    FROM YourTable
    GROUP BY YourColumn
    HAVING COUNT(*) &gt; 1
    ORDER BY COUNT(*) DESC

this query is solved my lot of problems
Thank you very much</description>
		<content:encoded><![CDATA[<p>SELECT YourColumn, COUNT(*) TotalCount<br />
    FROM YourTable<br />
    GROUP BY YourColumn<br />
    HAVING COUNT(*) &gt; 1<br />
    ORDER BY COUNT(*) DESC</p>
<p>this query is solved my lot of problems<br />
Thank you very much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Florin</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-45843</link>
		<dc:creator>Florin</dc:creator>
		<pubDate>Wed, 21 Jan 2009 15:25:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-45843</guid>
		<description>u r good</description>
		<content:encoded><![CDATA[<p>u r good</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tejasnshah</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-45268</link>
		<dc:creator>tejasnshah</dc:creator>
		<pubDate>Fri, 02 Jan 2009 05:00:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-45268</guid>
		<description>Hi,

I have written to get Duplicate Rows from the table. You can use the ROW_Number() in SQL 2005.

To read more about it:

http://tejasnshah.wordpress.com/2008/12/31/find-duplicate-rows-with-row_number-sql-server-2005/

Tejas</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have written to get Duplicate Rows from the table. You can use the ROW_Number() in SQL 2005.</p>
<p>To read more about it:</p>
<p><a href="http://tejasnshah.wordpress.com/2008/12/31/find-duplicate-rows-with-row_number-sql-server-2005/" rel="nofollow">http://tejasnshah.wordpress.com/2008/12/31/find-duplicate-rows-with-row_number-sql-server-2005/</a></p>
<p>Tejas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EK</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-45253</link>
		<dc:creator>EK</dc:creator>
		<pubDate>Thu, 01 Jan 2009 13:34:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-45253</guid>
		<description>Did it, quite new to SQL I&#039;m afriad, hope it helps another novice :)

SELECT top 20 computers.name as CID, COUNT(*) as ErrorCount
FROM  errors
inner join computers
on computers.id = errors.computerid
GROUP BY computers.name
HAVING COUNT(*) &gt; 1
ORDER BY COUNT(*) DESC</description>
		<content:encoded><![CDATA[<p>Did it, quite new to SQL I&#8217;m afriad, hope it helps another novice :)</p>
<p>SELECT top 20 computers.name as CID, COUNT(*) as ErrorCount<br />
FROM  errors<br />
inner join computers<br />
on computers.id = errors.computerid<br />
GROUP BY computers.name<br />
HAVING COUNT(*) &gt; 1<br />
ORDER BY COUNT(*) DESC</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EK</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-45252</link>
		<dc:creator>EK</dc:creator>
		<pubDate>Thu, 01 Jan 2009 13:15:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-45252</guid>
		<description>Using the above Query is nearly just what I need but it only gives me an ID (YourColumn).  I have another table which would have a named value for this ID.  How can I return that instead?  A Join or a nested statement?

Many thanks</description>
		<content:encoded><![CDATA[<p>Using the above Query is nearly just what I need but it only gives me an ID (YourColumn).  I have another table which would have a named value for this ID.  How can I return that instead?  A Join or a nested statement?</p>
<p>Many thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mahi</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-45184</link>
		<dc:creator>mahi</dc:creator>
		<pubDate>Tue, 30 Dec 2008 06:19:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-45184</guid>
		<description>select Taluk_Name_Eng ,count(Taluk_Name_Eng)as kk from tbl_PL04_Taluk


what problem in this query</description>
		<content:encoded><![CDATA[<p>select Taluk_Name_Eng ,count(Taluk_Name_Eng)as kk from tbl_PL04_Taluk</p>
<p>what problem in this query</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baal</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-44762</link>
		<dc:creator>Baal</dc:creator>
		<pubDate>Fri, 12 Dec 2008 19:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-44762</guid>
		<description>thanks.</description>
		<content:encoded><![CDATA[<p>thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: padma</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-44207</link>
		<dc:creator>padma</dc:creator>
		<pubDate>Thu, 13 Nov 2008 17:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-44207</guid>
		<description>HI Pinal,
        
         If I want to select all the fields in a table,
How shold I write the query for that

thank u</description>
		<content:encoded><![CDATA[<p>HI Pinal,</p>
<p>         If I want to select all the fields in a table,<br />
How shold I write the query for that</p>
<p>thank u</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-43877</link>
		<dc:creator>Rajesh</dc:creator>
		<pubDate>Thu, 23 Oct 2008 12:17:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-43877</guid>
		<description>Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashok</title>
		<link>http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-43693</link>
		<dc:creator>Ashok</dc:creator>
		<pubDate>Tue, 14 Oct 2008 12:26:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/11/sql-server-count-duplicate-records-rows/#comment-43693</guid>
		<description>I need to limit the number of duplicates. Can this be achieved? Thanks.</description>
		<content:encoded><![CDATA[<p>I need to limit the number of duplicates. Can this be achieved? Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
