Results 1 to 5 of 5
  1. #1
    JesterMania is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    3

    Common entries within multiple tables

    Greetings,



    I am very new to MS Access 2007 and have a problem I am trying to overcome. I have about 100 tables containing listings of user IDs. My task is to obtain a list of users IDs common to all 100 tables.

    i.e. if I had 3 tables with the following:

    Table 1
    -------
    George
    John
    Harry
    Chris

    Table 2
    -------
    John
    Ben
    Peter
    Chris
    Henry
    George

    Table 3
    -------
    Ben
    Chris
    George
    Michael

    The query should return the following:

    George
    Chris

    How would I design this query in MS Access and would the solution scale well with approximately 100 tables?

    Thanks!

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Are the IDs the same to those users? How do you know George in Table1 and George in Table2 aren't different people?

  3. #3
    JesterMania is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    3
    They are the same user. Actually, the example below was only a simplified version of the problem. The real data IDs are first name initial + last name such as GJACKSON (George Jackson).

  4. #4
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    That's still an ID violation though. What happens if you have 2 George Jacksons?

    In any case, how are the tables and fields named? What you would do is create a massive UNION query then do a SELECT DISTINCT from the UNION.

  5. #5
    JesterMania is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    3
    The Shabz, I appreciate your concern regarding ID validation but let's just assume that these are the same people for the sake of solving my problem For each table, there is only 1 column called "U ID"

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

Similar Threads

  1. Joining 2 Tables based on a Common Relation to Another
    By StudentTeacher in forum Programming
    Replies: 5
    Last Post: 07-26-2011, 07:23 AM
  2. Field with multiple entries....?
    By norlo in forum Database Design
    Replies: 1
    Last Post: 05-12-2011, 12:04 PM
  3. Multiple entries
    By danelliott in forum Access
    Replies: 3
    Last Post: 11-08-2010, 08:08 AM
  4. Multiple entries
    By Ziggy-R in forum Access
    Replies: 11
    Last Post: 10-03-2010, 07:42 PM
  5. Replies: 3
    Last Post: 08-06-2009, 11:49 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