SELECT TagName, COUNT(*) Questions, SUM(CAST(ViewCount AS...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT TagName, COUNT(*) Questions, SUM(CAST(ViewCount AS bigint)) Views
FROM Tags t
JOIN PostTags pt ON pt.TagId = t.Id
JOIN Posts p ON p.Id = pt.PostId
WHERE PostTypeId = 1
AND CreationDate BETWEEN '2013-01-01' AND '2014-01-01'
GROUP BY t.TagName
HAVING COUNT(*) > 1000
ORDER BY Views DESC

Enter Parameters

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