PDA

Click to See Complete Forum and Search --> : duplicate records


thedee23
Aug 29th, 2000, 02:02 PM
Does anyone know of a good way to get only duplicate fields in a Access database using a sql statement? For example - If I have a field in my table called Last Name and I want to get all the records with duplicate Last Names. What would be the best way to get this info?

JHausmann
Aug 29th, 2000, 03:16 PM
select lastname, count(lastname) from table group by lastname having count(lastname)>1