WITH htmltag as ( SELECT psttg.PostId FROM PostTags psttg...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Woodworking

Q&A for professional and amateur woodworkers

WITH 
	htmltag as (
		SELECT psttg.PostId 
		FROM PostTags psttg 
		WHERE psttg.TagId=(SELECT Id FROM Tags WHERE UPPER(TagName)='CSS')
		)
	,cstag  as (
		SELECT psttg.PostId 
		FROM PostTags psttg 
		WHERE psttg.TagId=(SELECT Id FROM Tags WHERE UPPER(TagName)='HTML')
		)
SELECT Top 10 
	 pst.Title
	,MAX(pst.answerCount) as answer_count
FROM Posts pst
	Inner Join htmltag ht ON ht.PostId=pst.Id
    Inner Join cstag cs ON cs.PostId=pst.Id
GROUP BY pst.Title
ORDER BY 2 DESC

Enter Parameters

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