How many upvotes do I have for each tag?

0

Please login or register to vote for this query.

(click on this box to dismiss)

how long before I get tag badges?

Stack Apps

Q&A for apps, scripts, and development with the Stack Exchange API

-- How many upvotes do I have for each tag?
-- how long before I get tag badges?

DECLARE @UserId int = ##UserId##

SELECT
    Votes.CreationDate,
    COUNT(*) AS 'Upvotes'
FROM Posts
    INNER JOIN Votes ON Votes.PostId = Posts.Id and VoteTypeId = 2
WHERE 
    Posts.OwnerUserId = @UserId
GROUP BY
    Votes.CreationDate
ORDER BY
    Votes.CreationDate

Enter Parameters

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