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)

Christianity

Q&A for committed Christians, experts in Christianity and those interested in learning more

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