How to find the duplicate records in a table? Query: Simple Table SELECT c1, c2, ... ,cn, count(*) FROM TableName GROUP BY c1, c2,..., cn HAVING count(*) > 1; Table with Joins: SELECT c1, c2, ... ,cn, count(*) FROM TableName1 INNER JOIN TableName2 on TableName1.ColName=TableName2.ColName GROUP BY c1, c2,..., cn HAVING count(*) > 1;
This blog is fully for system admins and others who are facing issues with their day to day IT life. Which helps you to learn from your mistakes and issues here you can find lot of troubleshooting techniques and other information which helps you to get some idea to fix your issues..