Task Table
id assign_to task
1 1,2,4 Development
2 2,5,3 Testing
Employee Table
id Name
1 Dhawan
2 Sachin
3 Dhoni
4 Virat
5 Rohit
Here i am trying to get all employee name from employee table and get in assign_to field in task table. so my output will be below
id assign_to task
1 Dhawan, Sachin,Virat Development
2 Virat, Rohit, Dhoni Testing
Below query i wrote. Can anyone suggest me what will be the query for this
select t.*, from task t inner join employee e on e.id in (t.assign_to)