Who Has Answered My Questions?

0

Please login or register to vote for this query.

(click on this box to dismiss)

Open Source Meta

Q&A about the site for people organizing, marketing or licensing open source development projects

declare @UserId int = ##UserId##;
-- Who Has Answered My Questions?

select u.displayname, a.Id as [Post Link]
from users as u 
inner join posts as a on a.owneruserid = u.id and a.posttypeid = 2
where 
 (a.ParentId in (select id from  posts where owneruserid = @UserId and posttypeid =1
))

order by u.displayname

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results