I have two tables with many to many relation.
table 1:
Code | Product |
------------+----------+
00001 | product1 |
00002 | product2 |
table 2:
Tag_id | name |
-------+--------
1 | tag1 |
2 | tag2 |
associated Table:
Tag_id | Product_id
--------+----------+
1 | product1 |
1 | product2 |
1 | product3 |
2 | product4 |
3 | product4 |
4 | product4 |
Someone please tell me how can i genrate table like display below:
Code | Product | Tags
------------+----------+---------------
00001 | product1 | tag1,tag2
00002 | product2 | tag1,tag3,tag4
Or tags in a multiple columns.