select stuff((select ','+fieldName + ' as ' + alias from Table where a.No=No for xml path('')),1,1,'') as sqlJoint from
group by NoTable as a where No='00001'
select stuff((select ','+fieldName + ' as ' + alias from Table where a.No=No for xml path('')),1,1,'') as sqlJoint from
group by NoTable as a where No='00001'