Results 1 to 3 of 3
  1. #1
    TimC is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    34

    Duplicate Records


    I receive a quarterly database from a third party. The database includes multiple tables. One of the tables includes 45,000 rows of data and includes things like name, department, address, etc. I’m trying to build a query that pulls the 20 or so department names but I get 45,000 records (lots of duplicates) because the way the third party enters data into the database. Is there an easy way to filter out the repeats so I only get the 20 or so department names? FYI - There is not a separate table that includes the list of departments. Thanks.

    Tim

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Try:

    SELECT DISTINCT Department FROM tablename;
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    TimC is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    34
    That worked perfectly. Thank you.


    Quote Originally Posted by June7 View Post
    Try:

    SELECT DISTINCT Department FROM tablename;

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 11-08-2017, 09:04 AM
  2. Replies: 3
    Last Post: 03-22-2014, 04:32 PM
  3. Duplicate Records
    By MTSPEER in forum Access
    Replies: 2
    Last Post: 06-05-2013, 09:07 AM
  4. Duplicate records listed!
    By claysea in forum Access
    Replies: 3
    Last Post: 02-14-2012, 12:33 PM
  5. Duplicate Records
    By softspoken in forum Queries
    Replies: 3
    Last Post: 06-21-2010, 03:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums