PC Review


Reply
Thread Tools Rate Thread

outer joint query

 
 
inungh
Guest
Posts: n/a
 
      17th Dec 2010
I am looking an outer joint query like following. I just wonder does
MS Access support following query.


Table1
ID
1
2
3

Table2
ID
2
5
6

Can I have an outer joint query to get all records like?

Query Result
1
2
3
5
6

MS Access has Left Outer and Right Outer joint. Does it support Left
and Right Outer Joint together?
If yes, can you show me how to get the query?

Your help is great appreciated,




 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      17th Dec 2010
On Thu, 16 Dec 2010 16:55:29 -0800 (PST), inungh <(E-Mail Removed)> wrote:


>
>MS Access has Left Outer and Right Outer joint. Does it support Left
>and Right Outer Joint together?
>If yes, can you show me how to get the query?


Not directly, but you can construct one using a UNION:

SELECT TableA.ID LEFT JOIN TableB.ID
ON TableA.ID = TableB.ID
UNION
SELECT TableA.ID RIGHT JOIN TableB.ID
ON TableA.ID = TableB.ID

--

John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/For...-US/accessdev/
http://social.answers.microsoft.com/.../en-US/addbuz/
and see also http://www.utteraccess.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data in a joint query =?Utf-8?B?dGhlOHRoZG92ZQ==?= Microsoft Access Queries 1 22nd Nov 2005 04:04 PM
Any Joint Ops Players Here ??? JonnySpam Gaming 7 27th Nov 2004 11:48 PM
Joint Ops: Typhon Rising Question Reefsmoka Gaming 7 3rd Sep 2004 12:06 PM
Query, joint table, or ? Stefano Fea Microsoft Access 2 15th Sep 2003 12:58 AM
Can XP home edition joint Domain. Truoc Do Windows XP Networking 0 18th Jul 2003 11:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:14 PM.