SELECT Duplicate Items Using SQL


If you have a table which has duplicate items in then you can use the below statement to select them.

SELECT * FROM tableName
GROUP BY columnName
HAVING ( COUNT( columnName) >1 )