It\'s easy to find duplicates with one field:
SELECT name, COUNT(email) FROM users GROUP BY email HAVING COUNT(email) > 1
So if we have
try this code
WITH CTE AS ( SELECT Id, Name, Age, Comments, RN = ROW_NUMBER()OVER(PARTITION BY Name,Age ORDER BY ccn) FROM ccnmaster ) select * from CTE