I have the following 2 tables
Table1 ( ID, val1, val2)
Table2 ( ID, val3, val4)
this is the condition table1.val1 = table2.val3
For each table1.val1 there can be multiple rows in table2.
If I am joining as following then there will be multiple select for the same table1 values.
select t1.*,t2.val4
from table1 t1, table t2
where t1.val1 = t2.val3
0, 1, 2, 4
0, 1, 2, 5
0, 1, 2, 6
and so on.
I want to contact all the val4 of table2 as following
0, 1, 2, "4/5/6"