SELECT t.TagName, count(10) AS cnt FROM PostTags AS pt LE...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Physical Fitness Meta

Q&A about the site for physical fitness professionals, athletes, trainers, and those providing health-related needs

SELECT t.TagName, count(10) AS cnt
FROM
PostTags AS pt
LEFT JOIN
(SELECT Id FROM Posts WHERE YEAR(CreationDate)=2017 AND Tags IS NOT NULL) AS p
ON pt.PostId=p.Id
LEFT JOIN 
Tags AS t ON pt.TagId=t.Id
WHERE pt.TagId IS NOT NULL AND p.Id IS NOT NULL 
GROUP BY t.TagName
ORDER BY cnt DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results