Top 100 Users by tag

1

Please login or register to vote for this query.

(click on this box to dismiss)

Genealogy and Family History Meta

Q&A about the site for expert genealogists and people interested in genealogy or family history

-- Top 100 Users by tag

SELECT Top 100
    ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#], 
    u.Id AS [User Link], 
    u.Reputation,
    count(p.id)
FROM
    Users u
inner join posts p on p.ownerUserid = u.id
inner join posttags pt on pt.postid = p.id
inner join tags t on t.id = pt.tagid
WHERE
    t.tagname='##tagname##'
group by u.reputation, u.id
ORDER BY
    Reputation DESC;

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results