Results 1 to 2 of 2
  1. #1
    bbbeng is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    8

    query to find id's with duplicate data across multiple tables

    I have 6 tables with the same design but the data is different because they are pulling data from 6 different places (it is an ODBC connection to other databases).



    I want to create a report that will show me the id for each row.

    The table design is: employeeID, SSN, Name ....

    So, I want a report that will show me every SSN and for each SSN, I want to see the employeeID (if it exists) for each table.

    The columns for the report would be: SSN, employeeID1, employeeID2, employeeID3, employeeID4, employeeID5, employeeID6

    Any ideas? Thanks!

  2. #2
    bbbeng is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    8
    Just realized I should have been a little more clear about why this is a challenge. An inner join will not return all of the SSN's, an left or right join will only return the SSN's on one table. I need to be able to get a list of all SSN's then find the employeeID for the SSN on each table. (I dont know if I just made it more clear or muddier! Thanks for any ideas.

    I am thinking I need to create a big master list of SSN's then run the queries against that.

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

Similar Threads

  1. Replies: 5
    Last Post: 08-12-2013, 12:53 AM
  2. query showing duplicate data
    By dan-gauci in forum Queries
    Replies: 2
    Last Post: 10-20-2011, 02:58 PM
  3. Replies: 6
    Last Post: 02-10-2011, 07:09 AM
  4. Replies: 3
    Last Post: 01-08-2011, 05:40 PM
  5. Use query to find and sum data
    By kwelch in forum Queries
    Replies: 3
    Last Post: 11-23-2009, 04:26 AM

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