Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2006
    Posts
    1

    Finding data that doesn't match

    I have three tables and I'm trying to find data that doesn't match.

    Employee table with employee id, employee name, and hire date.
    Employee ID
    9
    10
    11

    Technology Table with technology id and technology description
    Technology ID
    11
    12
    13
    14

    Employee_Technology table with the employee id and technology id
    9 11
    9 13
    10 11
    11 14

    I need to find out what technologies individuals are missing.

    I want the results to be
    9 12
    9 14
    10 12
    10 13
    10 14
    11 11
    11 12
    11 13

    I've tried joining on the technology ids to show all from technology and only those in the employee_technology table that match and then putting Is Null as the criteria in the employee_technology table and I get no results. I've tried all the combinations of the above - changing joins, changing where the Is Null is - nothing gives me any results.

    Any ideas what I'm missing?

    Debi

  2. #2
    Join Date
    Dec 2005
    Location
    Wilmington, DE - USA
    Posts
    275
    Debi,

    Try this:

    SELECT e.EmployeeID, t.TechnologyID
    FROM Employee e, Technology t
    WHERE e.EmployeeID & "|" & t.TechnologyID NOT IN
    (SELECT et.EmployeeID & "|" & et.TechnologyID
    FROM Employee_Technology et)
    ORDER BY e.EmployeeID, t.TechnologyID;

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

Similar Threads

  1. Find data, load data, and save as a new record
    By hawzmolly in forum Access
    Replies: 0
    Last Post: 10-05-2008, 03:18 PM
  2. Replies: 1
    Last Post: 06-20-2007, 07:26 PM
  3. Finding data between two date for any year
    By gemini2 in forum Access
    Replies: 4
    Last Post: 04-05-2006, 06:20 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