Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry
SELECT TOP(##num?100##) RANK() OVER(ORDER BY COUNT(DISTINCT pt.TagId) DESC) AS Rank, a.OwnerUserId AS [User Link], COUNT(DISTINCT pt.TagId) AS [# of tags] FROM Posts a INNER JOIN Posts q ON a.ParentId=q.Id INNER JOIN PostTags pt ON pt.PostId=q.Id ----WHERE (a.CommunityOwnedDate IS NULL) GROUP BY a.OwnerUserId ORDER BY COUNT(DISTINCT pt.TagId) DESC