Results 1 to 3 of 3
  1. #1
    Howard is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2010
    Posts
    5

    Join Properties - Please Explain

    Hi,

    I dont understand what the following meant. Would someone please explain to me in plain english with examples? I have searched online but still confused.

    1. Only include rows where the joined fields from both tables are equal.


    2. Include ALL records from 'Customers' and only those records from 'Orders' where the joined fields are equal.
    3. Include ALL records from 'Orders' and only those records from 'Customers' where the joined fields are equal.

    Thanks

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Item #2 will create a LEFT join where you get a one to many.

    Considering the names of the tables, I would choose this if you are trying to query Orders associated to each Customer. This way you will see all customers in the customers table and all of the associated records, whether or not a customer has an order. Particulary helpful when you add criteria to your query like a date range, or delivery status of orders.

    Item #1 will only show records where there is a match. So, If you had a form bound to this query, you will not see a customer that did not place an order. Even if said customer has a record in the customer table.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    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.

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

Similar Threads

  1. Replies: 6
    Last Post: 12-03-2013, 02:59 AM
  2. Can someone explain what this means?
    By Jay13 in forum Access
    Replies: 5
    Last Post: 05-23-2013, 04:22 PM
  3. Can someone explain querydef?
    By roguex20 in forum Access
    Replies: 2
    Last Post: 07-22-2012, 11:57 AM
  4. Explain iif in ms access
    By pabbiraj in forum Programming
    Replies: 2
    Last Post: 05-27-2012, 01:20 AM
  5. plz explain how to use iif in msaccess
    By pabbiraj in forum Access
    Replies: 2
    Last Post: 05-22-2012, 01:39 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