Self answered questions

0

Please login or register to vote for this query.

(click on this box to dismiss)

Christianity

Q&A for committed Christians, experts in Christianity and those interested in learning more

select q.creationdate as [Asked on], a.creationdate as [Answered 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
order by a.Score desc, q.Score desc, q.creationdate desc;

Enter Parameters

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