Q&A for professional and amateur woodworkers
WITH Posts_HTML_CSS as ( SELECT DISTINCT ptag.PostId FROM PostTags ptag Inner Join Tags tag ON tag.Id = ptag.TagId and UPPER(tag.TagName) = 'HTML' Inner Join Tags tag2 ON tag2.Id = ptag.TagId and UPPER(tag2.TagName) = 'CSV' ) SELECT Top 10 COALESCE(pst.Title, 'N/A') as Title ,MAX(pst.AnswerCount) as NumberOfAnswers FROM Posts pst Inner Join Posts_HTML_CSS phc ON phc.PostId = pst.Id GROUP BY COALESCE(pst.Title, 'N/A') ORDER BY 2 DESC ;