Ok this is perhaps difficult to explain, but I'll do my best and hope You will ask if something seems hazy.
I have four 5 tables in my access database. 4 of the tables contains this:
Our business revenue monthly:
StoreID
month
Segmentation
revenue
Index
Our business revenue YTD
StoreID
Month
Segment
Revenue
Index
Partner business revenue month
StoreId
Month
Segment
Revenue
Index
Partner business revenue YTD
StoreID
Month
Segment
Revenue
Index
YTD = Year To Date revenue.
In our business we have a different Category-segmentation than our partner, so I have made another table (the fifth table) which has this info:
Our business category:
StoreID
Segment
Our business Sub-Category
Our business Category
The fifth table (Our business category) is linked/joined to the four remaining tables through the 'segment'. So I have made an inner join between 'Our business category' and the 4 remaining tables.
I have created a query in which I gather all data from the five tables. The idea with this query and report in the end is to gather our business revenues compared to our partners revenue in each category, as well as index' and marketshares based on the different tables.
Everything seemed fine until I compared my report with a 'handmade' report. The results were different in some of the categories which puzzled me for some time. I then realized that the reason were rather simple.
I have choosen that the join between my fifth table (see above) and the four remaining tables should be an inner join, but that created a simple problem. Whenever data from either our business or our partners business weren't available, no data is 'entered' into the query.
What I really need is an outer-join were all data from our revenue tables are brought into the query. But when I try to make an outer-join I get an error that says I need to make a seperate query that makes the join and then include that query into my excisting query.
Problem is that I don't know what to do now :-(
If you don't know what help I need, what can I post in here so that you can help?
In general I just need a way to join my fifth table to the other 4 tables without loosing data in my query![[sadeyes] [sadeyes] [sadeyes]](/data/assets/smilies/sadeyes.gif)
I have four 5 tables in my access database. 4 of the tables contains this:
Our business revenue monthly:
StoreID
month
Segmentation
revenue
Index
Our business revenue YTD
StoreID
Month
Segment
Revenue
Index
Partner business revenue month
StoreId
Month
Segment
Revenue
Index
Partner business revenue YTD
StoreID
Month
Segment
Revenue
Index
YTD = Year To Date revenue.
In our business we have a different Category-segmentation than our partner, so I have made another table (the fifth table) which has this info:
Our business category:
StoreID
Segment
Our business Sub-Category
Our business Category
The fifth table (Our business category) is linked/joined to the four remaining tables through the 'segment'. So I have made an inner join between 'Our business category' and the 4 remaining tables.
I have created a query in which I gather all data from the five tables. The idea with this query and report in the end is to gather our business revenues compared to our partners revenue in each category, as well as index' and marketshares based on the different tables.
Everything seemed fine until I compared my report with a 'handmade' report. The results were different in some of the categories which puzzled me for some time. I then realized that the reason were rather simple.
I have choosen that the join between my fifth table (see above) and the four remaining tables should be an inner join, but that created a simple problem. Whenever data from either our business or our partners business weren't available, no data is 'entered' into the query.
What I really need is an outer-join were all data from our revenue tables are brought into the query. But when I try to make an outer-join I get an error that says I need to make a seperate query that makes the join and then include that query into my excisting query.
Problem is that I don't know what to do now :-(
If you don't know what help I need, what can I post in here so that you can help?
In general I just need a way to join my fifth table to the other 4 tables without loosing data in my query
![[sadeyes] [sadeyes] [sadeyes]](/data/assets/smilies/sadeyes.gif)