Click here to Skip to main content
13,300,331 members (53,452 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


6 bookmarked
Posted 31 Jan 2012

To find duplicate rows in table

, 31 Jan 2012
Rate this:
Please Sign up or sign in to vote.
To find duplicate rows in table
--To find duplicate rows in table
select colname, count(colname) from TableName
Group by colname Having (count(colname) > 1)


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer
India India
.Net Programmer

You may also be interested in...


Comments and Discussions

GeneralIf colname allows NULL value then use count(*) instead of co... Pin
BoBsEd2-Feb-12 2:47
memberBoBsEd2-Feb-12 2:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171207.1 | Last Updated 31 Jan 2012
Article Copyright 2012 by Gaushick
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid