test

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 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 = ##UserId##
  GROUP BY 
    vt.Name, v.UserId
  ORDER BY 1,3

Enter Parameters

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