isnull(stuff((select ',' + d.comname from projemp a
left outer join emps c on a.empid = c.empid
left outer join coms d on a.comid = d.comid
where a.ProjID = @planprojid for xml path('')), 1, 1, ''), '')
isnull(stuff((select ',' + d.comname from projemp a
left outer join emps c on a.empid = c.empid
left outer join coms d on a.comid = d.comid
where a.ProjID = @planprojid for xml path('')), 1, 1, ''), '')