select top 1 p.OwnerUserId, tags + ', ' AS 'data()' from ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

select top 1 p.OwnerUserId, tags + ', ' AS 'data()' 
from
(select distinct OwnerUserId
from posts 
where tags like '%c#%') p
join
posts
on p.OwnerUserId = posts.OwnerUserId
FOR XML PATH('')

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results