I don't know how to describe my problem shortly in the title but I hope someone will understand it and can try to help me :)
In my case I have 2 tables which I join:
SELECT t1.Name, t1.Group
FROM tblOne AS t1
UNION
SELECT t2.Name, t2.Group
FROM tblTwo AS t2
Result:
=====================
Name | Group
=====================
Miller | TST
Miller | DEV
Johnson | TST
White | TST
Lopez | DEV
Brown | TST
Jackson | DEV
Jackson | TST
Target:
Name | Group
=====================
Miller | DEV, TST
Johnson | TST
White | TST
Lopez | DEV
Brown | TST
Jackson | DEV, TST
Have someone an idea? Thanks in advance for any tip.