Enter Query Description
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