Most viewed questions in a tag


Please login or register to vote for this query.

(click on this box to dismiss)

Show top 2000 posts by ViewCount in a tag

Cognitive Sciences Meta

Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry

DECLARE @tag0 nvarchar(25) = ##tag0:string?jquery##

SELECT top 2000 as [Post Link], p.title, p.ViewCount, p.CreationDate 
FROM Tags t
JOIN PostTags pt ON pt.TagId = t.Id 
JOIN Posts as p ON p.Id = pt.PostId
WHERE TagName = @tag0
ORDER BY p.ViewCount/(1+DATEDIFF(week, p.CreationDate, GETDATE())) DESC

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results