Legendary Badge advancement TopCount

10

Please login or register to vote for this query.

(click on this box to dismiss)

History of Science and Math

Q&A for people interested in the history and origins of science and mathematics

-- Legendary Badge advancement
-- Retrieve how often you reached the reputation cap

DECLARE @UserId int = ##UserId##

SELECT 
    COUNT(*) * 10 as Votes,
    Votes.CreationDate AS CreationDate
FROM Posts
INNER JOIN Votes 
    ON Votes.PostId = Posts.Id 
    AND VoteTypeId = 2
WHERE 
    Posts.OwnerUserId = @UserId
    AND Posts.CommunityOwnedDate IS NULL
GROUP BY 
    Votes.CreationDate

Enter Parameters

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