Results 1 to 2 of 2
  1. #1
    johnseito is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    419

    Full outer join in Access

    Hello,



    Is there an easier way to do full outer join in Access compare to SQL server.

    In Access we need to to left join then right join where left table is null then union them.

    This becomes very cumbersome if we have 4 tables that need to do the full outer join to.


    Please advise !

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,411
    access does not support the outer join - so you'll have to keep with the union query.

    However, providing your join is simple (e.g. joining all tables on say customerID) you can use a union query to gather all possible customerID's for all 4 tables - then left join this query to the 4 tables. an example for 2 tables

    Code:
    SELECT *
    FROM 
        ((SELECT CustID from tableX
          UNION SELECT CustomerPK FROM tableY) AS A
        LEFT JOIN TableX ON TableX.CustID = A.CustID)
        LEFT JOIN TableY ON TableY.CustomerPK=A.CustID

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

Similar Threads

  1. Access SQL - FULL OUTER JOIN
    By johnseito in forum Queries
    Replies: 3
    Last Post: 08-08-2017, 08:26 AM
  2. Full Outer Join -- How to?
    By WesHarding in forum Queries
    Replies: 5
    Last Post: 03-20-2017, 10:40 AM
  3. Replies: 4
    Last Post: 12-22-2014, 08:48 PM
  4. Replies: 3
    Last Post: 01-21-2014, 12:28 AM
  5. I can't get a full outer join to work
    By Bobt1993 in forum Queries
    Replies: 3
    Last Post: 03-20-2010, 10:05 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