accepted answer has less votes than the top voted answer and was posted after

0

Please login or register to vote for this query.

(click on this box to dismiss)

Gardening and Landscaping Meta

Q&A about the site for gardeners and landscapers

-- accepted answer has less votes than the top voted answer and was posted after
select top 30000 *
from
(
select  
   q.Id as [Post Link], 
   max(a.Score) [Top Score],
   accepted.Score as [Selected]
from Posts q
join Posts a on a.ParentId = q.Id
join Posts accepted on accepted.Id = q.AcceptedAnswerId
where accepted.Id < a.Id
group by q.Id, accepted.Score
having max(a.Score) > accepted.Score
) as X
order by 0 - [Selected] desc

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results