/ Published in: MySQL
Instead of the standard return of duplicates, this will actually show the rows that are duplicated, making it easier to see the data
Expand |
Embed | Plain Text
SELECT * FROM [tablename] INNER JOIN ( SELECT COUNT( * ) , [columnOfDuplicates] FROM [tablename] GROUP BY [columnOfDuplicates] HAVING COUNT( * ) >1 ) AS t2 ON [tablename].[columnOfDuplicates] = t2.[columnOfDuplicates]
You need to login to post a comment.
