This is probably easy, but I'm stumped. I have three large tables (50k+ records) that I import daily from external csv files. The tables do not have identical fields (so I can't append/merge them into one table), but do have some common ones such as Customer Account Number. For a simple example:
Table 1
Customer Name A Alan B Bob C Chuck
Table 2
Customer Apples A 1 A 1 B 3
Table 3
Customer Oranges B 5 B 5 C 6
I want to write a query to summarize all the data with an output that looks like this:
Customer Name Apples Oranges A Alan 2 B Bob 3 10 C Chuck 6
I have tried many combinations of inner and outer joins but cannot seem to find the right settings. Usually I end up with data that is many times higher than the expected amount (as if the query is adding from duplicate lines).
Any help would be appreciated.