Rectangle 27 2

if else conditions in mysql query php?


SELECT *
FROM user
where usertype =1 group by jobid
union
SELECT *
FROM user
where usertype =2 group by experienceId

You can try like this..

Note