track voting for multiple answers to specific question


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for serious players and enthusiasts of chess

       sum(case when v.votetypeid = 2 then 1 else 0 end) as upvotes, 
       sum(case when v.votetypeid = 1 then 1 else 0 end) as downvotes 
from posts p join votes v 
on = v.PostId
where p.ParentID = ##ParentQuestion:int?398871## and p.PostTypeId = 2 and v.votetypeid in (2,3)
group by
order by

Enter Parameters

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