Answered
Find Duplicate Query MySQL Syntax
There is a "find duplicates" query in SQL that is very useful
but I'm not sure what the syntax is for MySQL. It probably has
something to do with select distinct, group by but I'm not used to
to using these.
This is one that finds all duplicates of [FULLNAME]
SELECT CONTACTS.*
WHERE (((CONTACTS.FULLNAME) In (SELECT [FULLNAME] FROM [CONTACTS] As Tmp GROUP BY [FULLNAME]
HAVING Count(*)>1 )))
ORDER BY CONTACTS.FULLNAME, CONTACTS.COMPANY
Does anyone know?
This is one that finds all duplicates of [FULLNAME]
SELECT CONTACTS.*
WHERE (((CONTACTS.FULLNAME) In (SELECT [FULLNAME] FROM [CONTACTS] As Tmp GROUP BY [FULLNAME]
HAVING Count(*)>1 )))
ORDER BY CONTACTS.FULLNAME, CONTACTS.COMPANY
Does anyone know?