Hi Jim,That gets me part of the way. I now know that there are 50 duplicates.To identify the duplicate records, I modified the statement as follows:select firstname ,lastname, [duplicates]=count(*) from(select firstname, lastname, [recs]=count(*) from EmployeeInfogroup by firstname, lastnamehaving 1<count(*)) agroup by firstname, lastname
In my application, I want to present to HR when they have duplicate records so that they can fix it on their end. They need to know which employee has the duplicates.Thanks,~Joe
Avoid Sears Home Improvement