L
Lars Brownie
I have 2 tables with identical structure and different data:
Table 1 Fld1 Fld2 Fld3
1 x A
2 y A
Table 2 Fld1 Fld2 Fld3
1 x B
3 y B
Fld3 in table 1 is always A, in table 2 it's always B.
I need to merge those tables and get one result table like this
Fld1 Fld2 Fld3
1 x A,B
2 y A
3 y B
So I need to get all unique values of fld1 and fld2, if they only reside in
one of the tables or in both tables. Also, if they reside in both tables the
values of Fld3 should be merged (A,B).
Is there some clever query that would accomplish this?
Thanks in advance,
Lars
Table 1 Fld1 Fld2 Fld3
1 x A
2 y A
Table 2 Fld1 Fld2 Fld3
1 x B
3 y B
Fld3 in table 1 is always A, in table 2 it's always B.
I need to merge those tables and get one result table like this
Fld1 Fld2 Fld3
1 x A,B
2 y A
3 y B
So I need to get all unique values of fld1 and fld2, if they only reside in
one of the tables or in both tables. Also, if they reside in both tables the
values of Fld3 should be merged (A,B).
Is there some clever query that would accomplish this?
Thanks in advance,
Lars