Link to home
Start Free TrialLog in
Avatar of SteveL13
SteveL13Flag for United States of America

asked on

How find records with no dupes

I have an Excel file that looks like the following.  I know how to use the query wizard to find dupe Company Names and how to use the query wizard to find Dupe First Names.  But how do I create a query to find records that have no dupes?  In this case, just one record.

User generated image
ASKER CERTIFIED SOLUTION
Avatar of PatHartman
PatHartman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If the value in Company Name is exactly the same (and is the field where you want to find the values that have no Duplicates:

SELECT [Company Name], COUNT([Company Name] AS NameCnt FROM YourTable GROUP BY [Company Name] HAVING COUNT([Company Name])=1