Report question

Question: How get the T-SQL code to find duplicates?