Legendary Badge advancement TopCount


Please login or register to vote for this query.

(click on this box to dismiss)

Joomla Meta

Q&A about the site for Joomla! administrators, users, developers and designers

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

DECLARE @UserId int = ##UserId##

    CASE VoteTypeId
        WHEN 1 THEN 15
        WHEN 2 THEN 10
        WHEN 3 THEN -2
        WHEN 8 THEN -bountyamount
        WHEN 9 THEN bountyamount
        END TargetRepChange,
    Votes.CreationDate AS Date
FROM Votes
    INNER JOIN Posts ON Posts.Id = Votes.PostId
    INNER JOIN Users ON Users.Id = Posts.OwnerUserId
WHERE VoteTypeId IN (1,2,3,8,9)
    AND Posts.OwnerUserId = @UserId
    AND Posts.CommunityOwnedDate IS NULL
--    Votes.CreationDate
--    COUNT(*) >= 10
--    Votes DESC

Enter Parameters

Switch to main site
loading Hold tight while we fetch your results