Select Distinct STUFF((
select Distinct ';'+ Name from tablename
Name is not null and Emailaddress<>''
FOR XML PATH(''), TYPE
).value('.', 'NVARCHAR(MAX)')
,1,1,'') Name
select Distinct ';'+ Name from tablename
Name is not null and Emailaddress<>''
FOR XML PATH(''), TYPE
).value('.', 'NVARCHAR(MAX)')
,1,1,'') Name
No comments:
Post a Comment