Q&A for people interested in conceptual questions about life and challenges in a world where "cognitive" functions can be mimicked in purely digital environment
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 HAVING COUNT(DISTINCT PostTags.TagId) = 2 ORDER BY Tag_Amount DESC;