Jump to content

MS SQL full outer join help


ngubie

Recommended Posts

hi guys,

 

im trying to implement a full outer join in MS Access. since access is stupid and doesn't support a full outer join, i made my script as follows

 

select ....

from A inner join B

on A.field1 = B.field1 and A.field2 = B.field2

union all

select ....

from A left join B

on A.field1 = B.field1 and A.field2 = B.field2

union all

select ....

from A right join B

on A.field1 = B.field1 and A.field2 = B.field2

 

but my problem is when one of the tables doesn't have an entry for field1 or field2, the rest of the data is still displayed but those fields are null. is there a way i can make it so that

if field1 and field2 are present in any table, display that row WITH the field1 and 2 filled in?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.