Results 1 to 2 of 2

Thread: duplicate records

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Posts
    114
    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?

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    select lastname, count(lastname) from table group by lastname having count(lastname)>1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width