Q&A about the site for professors, theologians, and those interested in exegetical analysis of biblical texts
select top(##num?100##) pn.owneruserid as [User Link], sum(v.bountyamount) as [Total Rep], count(v.Id) as [Count] from votes v inner join posts p on v.postid = p.id inner join postnotices pn on pn.postid = p.parentid where votetypeid = 9 and p.owneruserid=##userid?8297## and pn.Postnoticetypeid IN (10,11,12,13,14,15) ---and pn.creationdate < v.creationdate and v.creationdate = convert(date,pn.deletiondate) group by pn.owneruserid order by sum(v.bountyamount) desc