G
greeknl via AccessMonster.com
I have a duplicates query like this
SELECT Companies.CompaniesID, Companies.CompanyName
FROM Companies
WHERE (((Left([Companies].[CompanyName],5)) In (SELECT left([CompanyName],5)
FROM [Companies] As Tmp GROUP BY left(CompanyName,5) HAVING Count(*)>1 )))
ORDER BY Companies.CompanyName;
works fine. but I would like to know if it is possible to do the same but
only starting from the second, third on nth place inside the name.
This so it will find e.g. the following duplicates, or mistypes which have
been entered again
Catherine
Katherine
Papadopoulos
pepadopoulos
Thank you
SELECT Companies.CompaniesID, Companies.CompanyName
FROM Companies
WHERE (((Left([Companies].[CompanyName],5)) In (SELECT left([CompanyName],5)
FROM [Companies] As Tmp GROUP BY left(CompanyName,5) HAVING Count(*)>1 )))
ORDER BY Companies.CompanyName;
works fine. but I would like to know if it is possible to do the same but
only starting from the second, third on nth place inside the name.
This so it will find e.g. the following duplicates, or mistypes which have
been entered again
Catherine
Katherine
Papadopoulos
pepadopoulos
Thank you