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