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( iif(q.acceptedanswerid = a.id,15,0) + iif(a.Score > 0, a.Score*10, 0)) [Reputation]
from
  Posts a
  inner join posts q on a.parentid = q.id
where
  q.closeddate is not null
  and not exists (select 1 from PostHistory where PostId=q.Id and CreationDate=q.ClosedDate and PostHistoryTypeId=10 and Comment in (101,1))
  and a.owneruserid = ##UserId##

Enter Parameters

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