Days hit rep cap

3

Please login or register to vote for this query.

(click on this box to dismiss)

Enter Query Description

Economics

Q&A for those who study, teach, research and apply economics and econometrics

-- Days hit rep cap
-- Enter Query Description

DECLARE @UserId int = ##UserId##
SELECT Row_Number() over (order by CreationDate) row, CreationDate, Votes
FROM (
         SELECT 
              SUM(case votes.votetypeid 
                      WHEN 1 THEN 15
                      WHEN 2 THEN 10 
                      WHEN 3 THEN -3
                      WHEN 9 THEN BountyAmount
               END) as Votes,
               Votes.CreationDate AS CreationDate
        FROM   Posts
               INNER JOIN Votes
                 ON Votes.PostId = Posts.Id
                    
        WHERE  Posts.OwnerUserId = @UserId
               AND Posts.CommunityOwnedDate IS NULL
        GROUP  BY Votes.CreationDate
) t
WHERE Votes>=200
 

Enter Parameters

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