Hi, I have two tables CategoryMaster and ProductMaster.
category_id Category Name
10 Test1
11 Test2
15 Test3
28 Test4
products_id model categories
301 modA 10|11
302 modB 11|15
303 modC 10|28|15
I want to display the category values along with the products. Can someone help me with a query or a function which lets me do this. The end result should be as below.
products_id model categories
301 modA Test1|Test2
302 modB Test2|Test3
303 modC Test1|Test3|Test2
I need the category numbers in the product replaced by the respective category name and "|" is the delimiter seperating the categories.
category_id Category Name
10 Test1
11 Test2
15 Test3
28 Test4
products_id model categories
301 modA 10|11
302 modB 11|15
303 modC 10|28|15
I want to display the category values along with the products. Can someone help me with a query or a function which lets me do this. The end result should be as below.
products_id model categories
301 modA Test1|Test2
302 modB Test2|Test3
303 modC Test1|Test3|Test2
I need the category numbers in the product replaced by the respective category name and "|" is the delimiter seperating the categories.