Answers for Tridion in the last 12 months (Scores and Numbers)

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

declare @tag_id int = (select id from tags where tagname = 'tridion');

select 
  users.id "User Link"
  ,count(answers.id) as "Nr"
  ,sum(answers.score) as "Score"
  
from users
join posts answers on (users.id = answers.owneruserid)
join posts parent on (answers.parentid = parent.id)
join posttags on (parent.id = posttags.postid)
where posttags.tagid = @tag_id
and answers.posttypeid = 2  -- answers only
and answers.creationDate >  DATEADD(Month, -12, DATEADD(dd, DATEDIFF(dd, 0, getdate()), 0) )
group by users.id
order by Nr desc

Enter Parameters

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