Vicious Dog based on Accepts

8

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select COUNT(*), q.OwnerUserId as [User Link], a.OwnerUserId as [User Link]
from Posts q
inner join Posts a on q.AcceptedAnswerId=a.Id
inner join Users qu on qu.Id = q.OwnerUserId
inner join Users qa on qa.Id = a.OwnerUserid
group by q.OwnerUserId, a.OwnerUserId
order by COUNT(*) desc

Enter Parameters

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