Reputation I have gained from answers to bad qestions

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select
  SUM(
    case
      when q.acceptedanswerid = a.id then 15 
    end
  ) as [Reputation]
from
  Posts a
  inner join posts q on a.parentid = q.id
  inner join posthistory h on a.parentid = h.postid
where
  q.closeddate is not null
  and h.posthistorytypeid = 10
  and h.comment != 101
  and h.comment != 1
  and a.owneruserid = ##UserId##

Enter Parameters

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