Overrun badge

0

Please login or register to vote for this query.

(click on this box to dismiss)

This query actually doesn't work because of the way SE keeps there data stored.

Stack Overflow

Q&A for professional and enthusiast programmers

with m_acc as (
select
  p.parentid as qid,
  count(*) as cnt

from 
  posts p
  inner join 
  votes  v on v.postid = p.id

where 
      votetypeid = 1 -- AcceptedByOriginator
  and PostTypeId = 2 
  and score >= 10
  
  
  

group by 
  p.parentid

having 
  count(*) > 1
)

select 
  id as [Post Link], 
  score,
  m_acc.cnt as [# times accept switch]
  
from 
  posts p
  inner join 
  m_acc on qid = p.id
  
  
order by 
  score desc

Enter Parameters

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