I am looking for a way to concatenate data from different rows.
TableA
----------
A Albert
B Bob
C Celine
TableB
----------
A 555-5555
A 555-6666
B 555-7777
I want
--------
Albert 555-5555, 555-6666
Bob 555-7777
Celine
Is there a query that would do this, a standard function or know user function to do this?
>select col2, myConcat(select col2 from tableB where TableA.col1 = TableB.col1) as xxx from TableA
There may be an infinite number of rows
Thank you
Stephan
TableA
----------
A Albert
B Bob
C Celine
TableB
----------
A 555-5555
A 555-6666
B 555-7777
I want
--------
Albert 555-5555, 555-6666
Bob 555-7777
Celine
Is there a query that would do this, a standard function or know user function to do this?
>select col2, myConcat(select col2 from tableB where TableA.col1 = TableB.col1) as xxx from TableA
There may be an infinite number of rows
Thank you
Stephan