track voting for multiple answers to specific question

0

Please login or register to vote for this query.

(click on this box to dismiss)

Chess

Q&A for serious players and enthusiasts of chess

select v.votetypeid, 
       count(v.votetypeid) 
       over (partition by p.id, v.votetypeid) countscore
from posts p join votes v 
on p.id = v.PostId
where p.ParentID = ##ParentQuestion:int?398871## and p.PostTypeId = 2 and v.votetypeid in (2,3)
order by p.id, v.CreationDate

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results