Top users by query and tag


Please login or register to vote for this query.

(click on this box to dismiss)

Top users by query and tag


Q&A for Joomla! administrators, users, developers and designers

-- Top users per tag

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

--select rank() over (order by score desc) "Rank", * from (
select top 50
  rank() over (order by sum(answers.score) desc) "Rank", "User Link"
  ,sum(answers.score) as "Score"
from users
join posts answers on ( = answers.owneruserid)
join posts parent on (answers.parentid =
join posttags on ( = posttags.postid)
where posttags.tagid = @tag_id
and answers.posttypeid = 2  and LOWER(Location) LIKE LOWER('%##CountryName##%')
group by
order by sum(answers.score) desc

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results