65.9K
CodeProject is changing. Read more.
Home

To find duplicate rows in table

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.91/5 (4 votes)

Jan 31, 2012

CPOL
viewsIcon

46512

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)