Solved

Outer join function in Access

Posted on 2003-12-11
3
1,985 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

734 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