insert into #USERS
select TOP ##TopX:int?18## u.Id as UserId,
'''' + u.DisplayName + ' - ' + Cast(count(*) as NVarchar(10)) + '''' as Name,
u.Reputation as Reputation
from Users u,
Posts p
where Reputation > 101
and p.CreationDate >= @adate
and p.OwnerUserId = u.id
and PostTypeId in (1,2)
group by u.Id, u.DisplayName, u.Reputation
having count(*) > 0
order by Reputation Desc, Count(*) DESC