I am using two tables -institute and category. Institute table is having category id with comma separated values like 1,2. I want to get these comma separated values as IT,Health in MySQL query result.
I am using this below query:
SELECT i.*, c.category_name FROM institute i, category c WHERE FIND_IN_SET(c.category_id, i.institute_category)
Which shows me the below result :
I am looking for comma separated values in categories and dont need duplicate institute id i.e.