http://meta.stackexchange.com/questions/144716/reputation-history-from-data-explorer
Q&A for committed Christians, experts in Christianity and those interested in learning more
; with upvQ as ( select v.creationdate , sum(count(*)*5) over (order by v.creationdate) as score from posts p inner join votes v on v.postid = p.id where v.votetypeid = 2 --UpVote and p.posttypeid = 1 -- Q and p.owneruserid = ##uid## group by v.creationdate) , upvA as ( select v.creationdate , sum(count(*)*10) over (order by v.creationdate) as score from posts p inner join votes v on v.postid = p.id where v.votetypeid = 2 --UpVote and p.posttypeid = 2 -- A and p.owneruserid = ##uid## group by v.creationdate) , dwnVQA as ( select v.creationdate , sum(count(*)*-2) over (order by v.creationdate) as score from posts p inner join votes v on v.postid = p.id where v.votetypeid = 3 --DownVote and p.posttypeid in (1,2) -- Q and A and p.owneruserid = ##uid## group by v.creationdate) select distinct v.creationdate , upvq.score as [Upvote Question] , upvA.score as [Upvote Answer] ,dwnVQA .score as [Downvotes own Q and A] from votes v left outer join upvQ on upvQ.creationdate = v.creationdate left outer join upvA on upvA.creationdate = v.creationdate left outer join dwnVQA on dwnVQA.creationdate = v.creationdate where v.creationdate >= ( select creationdate from users where id = ##uid##) order by v.creationdate