SAS Tag Answerers

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

declare @year as int = ##year:int?2019##

select OwnerUserID, DisplayName, count(1) as AnswerCount, sum(score) as AnswerScore
from posts 
inner join (
select posts.id
from posts 
left join posttags
on posts.id=posttags.postid
left join tags
on posttags.tagid = tags.id
where tags.tagname = 'sas'
and year(creationdate)=@year
) questions
on posts.parentID = questions.id
left join Users
on posts.OwnerUserID = Users.ID
group by OwnerUserID, Users.DisplayName
having sum(score) > 5
order by  AnswerScore desc

Enter Parameters

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