Number of upvotes for a certain user

1

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 COUNT(*)
  FROM Votes AS v
  INNER JOIN Posts AS p ON v.PostId = p.Id
  WHERE p.OwnerUserId = ##UserId:int##
    AND v.VoteTypeId = 2 -- upvote

Enter Parameters

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