Q&A about the site for scholars and enthusiasts of literature
DECLARE @UserId int = ##UserId## select top 5000 q.creationdate as [Asked on], a.creationdate as [Asked on], q.OwnerUserId as [User Link], q.Id as [Post Link], q.Score as 'Question Score', a.Score as 'Answer Score' from ( (select Posts.* from (Posts join PostTypes on Posts.PostTypeId = PostTypes.Id) where PostTypes.Name = 'Question') as q join (select Posts.* from (Posts join PostTypes on Posts.PostTypeId = PostTypes.Id) where PostTypes.Name = 'Answer') as a on q.Id = a.ParentId) where q.OwnerUserId = a.OwnerUserId and q.OwnerUserId=@UserId order by q.creationdate asc;