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)

Gardening and Landscaping Meta

Q&A about the site for gardeners and landscapers

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 to main site
loading Hold tight while we fetch your results