Reputation History

0

Please login or register to vote for this query.

(click on this box to dismiss)

Returns the reputation development for the given userid - by date. For simplicity, only votes/accepts on answers are considered - no rep cap, no badges. Feel free to fork :-)

Physical Fitness Meta

Q&A about the site for physical fitness professionals, athletes, trainers, and those providing health-related needs

with scores as (select cast(votes.CreationDate as Date) as date,
                       sum(case VoteTypeId when 1 then 15
                                           when 2 then case PostTypeId when 1 then 
                                                   case when votes.CreationDate >= '03/19/2010' then 5 
                                                        when votes.CreationDate < '03/19/2010' then 10 end
								  when 2 then 10 end
                                           when 3 then -2 
				           when 16 then 2 end
			  	) as score
                from votes
                     inner join posts on posts.Id = votes.PostId
                where posts.OwnerUserId = ##UserId##
                      and posts.CommunityOwnedDate is null
                group by votes.CreationDate)
select date, sum(score)  over (order by date) as Repo
from  scores

Enter Parameters

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