Hello I have table name FriendsData that contains duplicate records as shown below
fID UserID FriendsID IsSpecial CreatedBy ---
Try this
DELETE FROM FriendsData WHERE fID NOT IN ( SELECT MIN(fID) FROM FriendsData GROUP BY UserID, FriendsID)
See here
Or here is more ways to do what you want
Hope this helps