Results 1 to 3 of 3
  1. #1
    defaultuser909 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2012
    Posts
    12

    Talking Left-Outer Join on Non-Unique ID


    Hi,

    This may be a relatively simple issue to solve but I have not been able to search for this properly to find a solution. But here goes...

    I am working in a special scenario where I am manipulating a line-by-line transactional table. In other words for each order, there are multiple rows, one for each item that was ordered, with the same orderid. (This file is being uploaded to a 3rd party analytics software that requires the data to be broken down at this leve) Now that I have this file formatted, I need to attach some additional columns that are joined by the non-unique orderID. The image below illustrates what I am trying to accomplish:

    Click image for larger version. 

Name:	screenshot20120903at122.png 
Views:	13 
Size:	19.4 KB 
ID:	9034

    The main table (table 1) has the non-unique orderID's and the other tables I am attempting to join the additional columns from can either have a) a unique ID as shown above or b) potentially a non unique ID has well. Thus, this is more like a VLOOKup. I need each row within table 1 that has a matching order ID within another table to have that corresponding value filled in.

    Does this make sense on how I am explaining this? I am using Microsoft Access 2010 (on a virtual machine for mac)

    Thank you!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Looks like a simple SELECT query that joins parent and child tables with 1 to many relationship. Very basic Access functionality. Use the Access query designer. Access help has guidelines.

    However, only one child table with many related records could be included in the query.
    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
    defaultuser909 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2012
    Posts
    12
    June7,

    Thank you for your help! Thankfully there are only stupid questions, not stupid people...or wait...?


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

Similar Threads

  1. Replies: 4
    Last Post: 09-03-2012, 04:53 PM
  2. Outer Join Nested in Inner Join
    By Stevens7 in forum Queries
    Replies: 2
    Last Post: 10-19-2011, 01:34 PM
  3. LEFT/RIGHT/OUTER JOINS in a set of subqueries
    By luckycharms in forum Queries
    Replies: 1
    Last Post: 08-01-2011, 05:06 PM
  4. Replies: 3
    Last Post: 02-02-2011, 01:00 PM
  5. Outer left join leaves out null values
    By mschles4695 in forum Queries
    Replies: 1
    Last Post: 12-22-2010, 11:43 PM

Tags for this Thread

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