473,396 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Full / outer join in access

Hi all,

I have a table with analysis-results for various months. An item can -for a
particular month- have the result 'list1', 'list2' or 'list3' depending on
the result of the analysis.

Next, I want to get an insight in how the various items change over time.
For that, I compare the results of one month with the results of another
month. The form in which I want this is a cross-tab-query with one month as
a row-header and another month as the column-header. This results in a 3x3
table with 'list 1/2/3' as both column-headings and row-headings. The
'value' is the count of items that were in those lists in those particular
months.

To do this,
I created two queries for each of the months I want compared, and based the
cross-tab table on those two queries.
If the join in the two queries is an inner join, I get the table with all
items that occured in both months (3x3 table).
If I use a left join, I also get the items that occured in one month, but
not the next (4x3 table with row-label null; i.e. items that disappeared
from the analysis also show)
If I use a right join, I also get all items that occured in the next month,
but not in the first (3x4 table with column-label null; i.e. items that
appeared into the analysis also show)

Is there a way to have _both_ the appearing and disappearing items as a
result included in the cross-tab query (resulting in a 4x4 table) ?

Thanks in advance,

Bas Hartkamp.
Nov 13 '05 #1
2 3317
"HS Hartkamp" <hs*********@hccnet.nl> wrote in
news:41***********************@news.wanadoo.nl:
Hi all,

I have a table with analysis-results for various months. An
item can -for a particular month- have the result 'list1',
'list2' or 'list3' depending on the result of the analysis.

Next, I want to get an insight in how the various items change
over time. For that, I compare the results of one month with
the results of another month. The form in which I want this is
a cross-tab-query with one month as a row-header and another
month as the column-header. This results in a 3x3 table with
'list 1/2/3' as both column-headings and row-headings. The
'value' is the count of items that were in those lists in
those particular months.

To do this,
I created two queries for each of the months I want compared,
and based the cross-tab table on those two queries.
If the join in the two queries is an inner join, I get the
table with all items that occured in both months (3x3 table).
If I use a left join, I also get the items that occured in one
month, but not the next (4x3 table with row-label null; i.e.
items that disappeared from the analysis also show)
If I use a right join, I also get all items that occured in
the next month, but not in the first (3x4 table with
column-label null; i.e. items that appeared into the analysis
also show)

Is there a way to have _both_ the appearing and disappearing
items as a result included in the cross-tab query (resulting
in a 4x4 table) ?

Thanks in advance,

Bas Hartkamp.

My technique to get this is to create a union query of the field
(s) that is the key into the two tables. Then I join this to the
two other queries using two left joins.

--
Bob Quintal

PA is y I've altered my email address.
Nov 13 '05 #2

"Bob Quintal" <rq******@sPAmpatico.ca> wrote in message
news:1097333430.6R9MF9hUZl5yW66p4Aov2g@teranews...
"HS Hartkamp" <hs*********@hccnet.nl> wrote in
news:41***********************@news.wanadoo.nl:
Hi all,
My technique to get this is to create a union query of the field
(s) that is the key into the two tables. Then I join this to the
two other queries using two left joins.

Thanks ! Allways nice to be able to do something that the designers did not
put into the program.

It works excellent!

Bas.

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dave | last post by:
Hi I have the following 4 tables and I need to do a fully outerjoin on them. create table A (a number, b number, c char(10), primary key (a,b)) create table B (a number, b number, c ...
0
by: reneecccwest | last post by:
SELECT d.code, d.description, v.code AS divCode, v.descripton AS divDescript, b.code AS brhCode, b.description AS brhDescript FROM Department d FULL OUTER JOIN Division v
7
by: alexcn | last post by:
I have the following query: SELECT dbo.tSymExch.exCode, dbo.tSymGrp.sgCode, dbo.tSymMain.smCode FROM dbo.tSymExch FULL OUTER JOIN dbo.tSymGrp ON dbo.tSymExch.exID =...
3
by: deko | last post by:
From what I understand, an Inner Join narrow the rows selected to the table with the least results... and an Outer Join does the opposite... SELECT qryTxToQ1.Q1Total, qryTxToQ2.Q2Total,...
2
by: Cory | last post by:
i have two tables, Event1 and Event2. They both have fields called contactID and eventID in them. Some of the contactID's between the tables are equal and some are not. I want to do a full outer...
1
by: Martijn van Oosterhout | last post by:
Today I got the error: ERROR: FULL JOIN is only supported with mergejoinable join conditions Which is really annoying since a full join is exactly what I wanted. I guess the alternative is to...
3
by: Doug | last post by:
Hi, I'm more familiar with MSSQL than Access syntax and have run into a problem with correctly putting ( )'s around the joins in a 3 table query. I want to INNER JOIN lenders and accounts and...
5
by: catlover30 | last post by:
HI, I need help with excel VLOOKUP! I am at a new job and really trying to solve this without asking anyone at work, since they seem th expect me to know this. What I am trying to acheive is the...
1
by: shilpasharma | last post by:
Hi, Can anybody let me know how I can optimise following Query. Select * from reports where ( exists ( SELECT 1 FROM results_required rr, item_claims_trials ict, results res WHERE...
0
by: brunodamato | last post by:
In the example that follows, I am receiving an incorrect result set in the View. I am looking to get the FULL result set from View_LY and Table_TY. Instead, this View is returning the Common (Equi)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.