SELECT vt.Name, COUNT(vt.Name) FROM Votes AS v INNER JOIN...

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 vt.Name, COUNT(vt.Name) FROM 
   Votes AS v 
   INNER JOIN VoteTypes AS vt ON v.VoteTypeId=vt.Id
 WHERE v.PostId = ##PostId##
 GROUP BY vt.Name

Enter Parameters

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