I got a list of around 5 users which have duplicate entries in the table. Here is the query i used to get the duplicate entries. Please suggest some easy way to delete few entries.
USE [DB]
SELECT UserName, COUNT(*) AS CountOF
FROM UserDetails
WHERE RoleID = '2'
GROUP BY UserName
HAVING COUNT(*) > 1