with #fastp as ( select u.Id uid, 10*avg(0.1*datediff(min...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Role-playing Games

Q&A for gamemasters and players of tabletop, paper-and-pencil role-playing games

with #fastp as (
select u.Id uid, 
10*avg(0.1*datediff(minute, p1.CreationDate, p2.CreationDate)) Delay, count (*) K 
from Posts p1, Posts p2 , Users u
where p1.PostTypeId = 1 and p2.PostTypeId = 2 and p2.ParentId = p1.Id 
and p1.AcceptedAnswerId = p2.Id and p2.OwnerUserId = u.Id
group by u.Id )
select u2.Reputation, avg(fp.Delay) Delay
from Users u2 inner join #fastp fp on u2.Id = fp.uid
group by u2.Reputation 
order by u2.Reputation desc

Enter Parameters

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