low-scoring accepted answers

0

Please login or register to vote for this query.

(click on this box to dismiss)

Android Enthusiasts

Q&A for enthusiasts and power users of the Android operating system

select 
id as [Post Link], aascore, maxscore, diff
from
(select
q.id as id, q.aascore as aascore, max(ap.score) as maxscore, q.aascore - max(ap.score) as diff
from 
posts ap
join
(select aaq.id as id,aa.id as aaid,aa.score as aascore
from
  posts aa
  join
  (select id,acceptedanswerid from posts where acceptedanswerid > 0) as aaq
on aa.id = aaq.acceptedanswerid) as q
on ap.parentid = q.id
group by q.id,q.aascore) as x
where diff < ##minDiff?0##
order by diff

Enter Parameters

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