Longest time to accept answer


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for people studying math at any level and professionals in related fields

select pid , elapsed_time, accepted, answered
(select p.id as pid, v.creationdate - a.creationdate as elapsed_time,
a.creationdate as answered,
v.creationdate as accepted,
v.votetypeid as vote_type
from posts p, posts a, votes v
where a.parentid = p.id
and p.acceptedanswerid = v.postid
and v.postid = a.id
     ) s
     where vote_type = 1 
     order by elapsed_time desc

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results