Average Score per Tag

3

Please login or register to vote for this query.

(click on this box to dismiss)

Shows which tags bring in the most viewers

German Language Meta

Q&A about the site for speakers of German wanting to discuss the finer points of the language and translation

declare @TagString nvarchar(25) = ##tagName:string##

select t.tagName,(sum(p.ViewCount)/count(*)) as [Average Views] 
from Posts p
inner join PostTags pt on p.Id = pt.PostId
inner join Tags t on pt.TagId = t.Id
Group By t.tagName
Order by [Average Views] Desc

Enter Parameters

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