Reputation earned for an answer

0

Please login or register to vote for this query.

(click on this box to dismiss)

Drones and Model Aircraft Meta

Q&A for experienced flyers, pilots, and builders of drones and model aircraft

select  
sum(case when v.VoteTypeId = 2 then 10 else -2 end) as [Reputation Earned]
from 
  votes v 
inner join 
  Posts p 
on v.PostId=p.id 
where 
  p.OwnerUserId=##UserId## and p.id=##PostId##
  and v.VoteTypeId in (2,3)

Enter Parameters

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