Who downvoted?

0

Please login or register to vote for this query.

(click on this box to dismiss)

CiviCRM

Q&A for administrators and users of the CiviCRM Constituent Relationship Management software

SELECT vt.Id, v.UserId, vt.Name, COUNT(*)
   FROM 
     Posts p
       INNER JOIN Votes v
         ON v.PostId = p.Id
       INNER JOIN VoteTypes vt
         ON v.VoteTypeId = vt.Id
  WHERE
     --p.OwnerUserId = 8573097
     --and
     p.Id = 48635850
  GROUP BY 
   vt.Id, vt.Name, v.UserId
  ORDER BY 2,3

Enter Parameters

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