Solved

Outer join function in Access

Posted on 2003-12-11
3
1,982 Views
Last Modified: 2006-11-17
Dear All,
     Do anyone know how to get all the results in 2 tables A and B?
A and B has  a relationship of ID in each table, but I want to get all the result in A and B and also the result of A.id = B.id. How can I do that?
It seems likely to be the function of outer join in MsSQL, isn't it?
However, Access doesn't have this function, am I right?
0
Comment
Question by:foward
  • 2
3 Comments
 
LVL 10

Expert Comment

by:jobrienct
ID: 9925856
select * FROM A, B;  ?

im not sure you are asking the right question.

why dont you start by describing your current table structure and the question you would like answered by your query?

John
0
 
LVL 10

Expert Comment

by:jobrienct
ID: 9925880
or just in case you know what you want: select * from a,b where a.id = b.id;

John
0
 
LVL 11

Accepted Solution

by:
BillPowell earned 125 total points
ID: 9925923
Access doesnt have outer joins but you can simulate it by doing creating three queries:

1.  Select query changing join type to select all records in A and only related records in B
2.  Select query changing join type to select all records in B and only related records in A
3.  Union query to combine the previous two queries

This provides the same as an outer join, just a few more steps to get there.

Regards,

Bill
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question