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
How to get duplicate records from the Database
Posted by
Tushar Vaja
at
11:11 AM
,
Labels:
asp.net developer,
database,
duplicate records,
multiple records,
Sql Server
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment