Skip to content
Advertisement

sql query: To Select multiple value of second table in comma seperated form [closed]

sql query to get multiple value of second table in comma seperated form. both table are joined by tbl 1 id.

Advertisement

Answer

In mYsql you can try this (using GROUP BY and GROUP_CONCAT function). GROUP_CONCAT() concatenate the fields with same TABLE_1_ID and CATEGORY name – the fields listed after GROUP BY – , using a “,” as a separator.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement