Number of upvotes on my non-CW questions and repchange

1

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

SELECT COUNT(v.Id),
  CAST(COUNT(v.Id)*5 AS int)
FROM Posts p INNER JOIN Votes v ON v.PostId=p.Id
WHERE p.OwnerUserId=##UserId##
  AND v.VoteTypeId=2 -- upvote
  AND p.PostTypeId=1 -- question
  AND (p.CommunityOwnedDate IS NULL) --not CW posts

Enter Parameters

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