Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / February 2007

Tip: Looking for answers? Try searching our database.

Outer join with 3 tables using MS Query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jwatkins@smccme.edu - 16 Feb 2007 15:28 GMT
I am trying to do an outer join of three tables, using MS Query.  I
understand that this is possible, but that I must modify the SQL
code.  The following SQL code was generated by MS Query to perform an
outer join of two tables, Table_Field1 and Table_Field2.

SELECT Table_Field1.ID, Table_Field1.Field1, Table_Field2.Field2
FROM {oj Table_Field1 Table_Field1 LEFT OUTER JOIN Table_Field2
Table_Field2 ON Table_Field1.ID = Table_Field2.ID}

How would I modify the above code to extend the outer join by also
joining a third table, Table_Field3, which contains a field named
Field3 to be included in the final query result file?

Many thanks for your advice!
Jim Thomlinson - 16 Feb 2007 16:16 GMT
The standard interface for queries through MS query does not handle
complexity too well. You can open the SQL window however and write the query
from scratch, which you seem to have a good handle on. Doing it that way you
can get your outer joins along with pass through and unions nested selects
and...
Signature

HTH...

Jim Thomlinson

> I am trying to do an outer join of three tables, using MS Query.  I
> understand that this is possible, but that I must modify the SQL
[quoted text clipped - 10 lines]
>
> Many thanks for your advice!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.