Q&A about the site for expert genealogists and people interested in genealogy or family history
SELECT TOP 10 Posts.Id, Tags, COUNT(DISTINCT PostTags.TagId) AS Tag_Amount FROM Posts LEFT JOIN PostTags ON PostTags.PostId = Posts.Id GROUP BY Posts.Id, Tags ORDER BY Tag_Amount DESC;