How to get duplicate records from the Database

,
We have to use the group by with having command to get the duplicate values. this query shall show the result of only the users have duplicate values in the employee table.

SELECT columnName FROM TableName
Group By columnName
Having Count(*)>1

0 comments:

Post a Comment