Hello,
In Access 2000, I am performing a UNION on two tables. These tables have the same columns but with different data. Here is an example:
Table-1
KEY COL1 COL2 DataA DataB
Key1 1-A 2-A 2 2
Key2 2-A 2-B 2 2
Table-2
KEY COL1 COL2 DataA DataB
Key1 1-A 2-A 2 2
Key2 2-A 2-B 2 2
Key3 3-A 3-B 5 5
I am trying to develop a query that would give me the following result set.....
Query Result
KEY COL1 COL2 DataA DataB
Key1 1-A 2-A 4 4
Key2 2-A 2-B 4 4
Key3 3-A 3-B 5 5
.... but all of the rows in both tables are being returned.
Does anyone have a suggestion on how to accomplish this in Access?
Thanks in advance..
MM
In Access 2000, I am performing a UNION on two tables. These tables have the same columns but with different data. Here is an example:
Table-1
KEY COL1 COL2 DataA DataB
Key1 1-A 2-A 2 2
Key2 2-A 2-B 2 2
Table-2
KEY COL1 COL2 DataA DataB
Key1 1-A 2-A 2 2
Key2 2-A 2-B 2 2
Key3 3-A 3-B 5 5
I am trying to develop a query that would give me the following result set.....
Query Result
KEY COL1 COL2 DataA DataB
Key1 1-A 2-A 4 4
Key2 2-A 2-B 4 4
Key3 3-A 3-B 5 5
.... but all of the rows in both tables are being returned.
Does anyone have a suggestion on how to accomplish this in Access?
Thanks in advance..
MM