Wednesday, September 3, 2014

Find duplicate records in a table

Find duplicate records in a table

select column_name, count(column_name)
from table
group by column_name
having count (column_name) > 1;


No comments:

Post a Comment