<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8420869217696580759</id><updated>2011-04-21T15:58:18.442-07:00</updated><category term='MYSQL'/><category term='SQL'/><category term='duplicates'/><title type='text'>Tomdee</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tomdee.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8420869217696580759/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://tomdee.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Tom Denham</name><uri>http://www.blogger.com/profile/15702203993624462060</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8420869217696580759.post-1487265402115530149</id><published>2007-07-22T04:40:00.001-07:00</published><updated>2007-07-22T04:43:59.570-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='duplicates'/><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>Showing all duplicate records using MySQL</title><content type='html'>The following SQL demonstrates how to find all duplicates in a table and show all of the duplicated rows. Some examples of when this could be useful:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Identifying records in a users database where people have signed up with the same email address multiple times&lt;/li&gt;&lt;li&gt;Finding duplicate MP3s in a music database&lt;/li&gt;&lt;li&gt;Allowing the user to view duplicate values before selecting which ones to delete&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;SELECT *&lt;br /&gt;FROM tblFilms&lt;br /&gt;WHERE 1&lt;(&lt;br /&gt;SELECT COUNT(NonPKID) as CNT&lt;br /&gt;FROM tblFilms as Y&lt;br /&gt;WHERE Y.NonPKID=tblFilms.NonPKID&lt;br /&gt;GROUP by NonPKID&lt;br /&gt;HAVING CNT&gt;1&lt;br /&gt;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8420869217696580759-1487265402115530149?l=tomdee.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tomdee.blogspot.com/feeds/1487265402115530149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8420869217696580759&amp;postID=1487265402115530149' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8420869217696580759/posts/default/1487265402115530149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8420869217696580759/posts/default/1487265402115530149'/><link rel='alternate' type='text/html' href='http://tomdee.blogspot.com/2007/07/showing-all-duplicate-records-using.html' title='Showing all duplicate records using MySQL'/><author><name>Tom Denham</name><uri>http://www.blogger.com/profile/15702203993624462060</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
