company_email
skill
city
role
nilesh@webbrainstechnologies.com
2,3
1,2
5
< /td>
2,3,12,13 < /td>
1 < /td>
6 < /td>
< /tr>
< /td>
< /td> < /td> < /td> /> 1,4 < /td>
6 < /td>
< /tr>
/>
pparthweb@mail.com
1 < /td>
1 < /td>
4 < /td>
< /tr>
< /td>
< /td> < /td> < /td> /> 1 < /td>
4 < /td>
< /tr>
pparthweb@mail.com
1 < /td>
1,2,4 < /td>
4
4
1,2,4 < /td> /> < /tbody>
< /table> < /div>
Здесь у меня есть запрос, как это: < /p>
Код: Выделить всё
select jp.*,u.first_name,u.last_name,group_concat(DISTINCT s.skill) as sk,group_concat(DISTINCT c.name) as ct,ufj.fav_id,ufj.is_favourite
from job_post as jp
left join industry as ind on ind.ind_id = jp.industry_id
left join city c ON(FIND_IN_SET(c.city_id, jp.city) > 0)
left join skill s ON(FIND_IN_SET(s.skill_id, jp.skill) > 0)
join users as u on u.user_id = jp.emp_id
left join user_favourite_job as ufj on ufj.job_id = jp.job_id and ufj.user_id = 8
where jp.city in (2) and jp.is_delete = 1 group by job_id
Что я должен изменить в моем вопросе?>
Подробнее здесь: https://stackoverflow.com/questions/391 ... ot-returni