Join two tables

frankchang20

New Member
Joined
Sep 8, 2005
Messages
15
My question sounds simple but I really had a hard time to figure out it as I
am quite new to Access. I need join two tables. The two tables has two common
values (company and product) and I need both table's records to match both
common value before they can merger together. Here they are:

Table 1
Company/Product/Test1
1/1/*
1/2/*
1/3/*
1/4/*
2/1/*
2/2/*
2/3/*
3/1/*
3/2/*
3/3/*



Table 2
Company/Product/Test2
1/4/*
2/1/*
3/3/*

After merger, my result should be:

Company/Product/Test1/Test2
1/1/*
1/2/*
1/3/*
1/4/*/*
2/1/*/*
2/2/*
2/3/*
3/1/*
3/2/*
3/3/*/*

I know it is a outer join so I set up the join property with an arrow from
bigger table to smaller table. But after running the join query, it yields no
result to me. Thanks for your help!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
I just tried a query based on your post, here's the SQL.

SELECT Table1.Company, Table1.Product, Table1.[Test1 ], Table2.[Test2 ]
FROM Table1 LEFT JOIN Table2 ON (Table1.Product = Table2.Product) AND (Table1.Company = Table2.Company);
 
Upvote 0

Forum statistics

Threads
1,219,161
Messages
6,146,657
Members
450,706
Latest member
LGVBPP

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top