Self-answered questions


Please login or register to vote for this query.

(click on this box to dismiss)

View vote counts on self-answered questions.


Q&A for community managers, administrators, and moderators

select q.Id as [Post Link],
    q.Score as [Q score],
    --count(qup.Id) as [Q up],
    --count(ddown.Id) as [Q down],
    a.Score as [A score]--,
    --count(aup.Id) as [A up],
    --count(adown.Id) as [A down]
from Posts q
    inner join Posts a on a.PostTypeId = 2
        and q.OwnerUserId = a.OwnerUserId
        and a.ParentId = q.Id
        and datediff(minute, q.CreationDate, a.CreationDate) < 5
order by q.Id

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results