Question stats by tag

3

Please login or register to vote for this query.

(click on this box to dismiss)

Lifehacks

Q&A for people looking to bypass life's everyday problems with simple tricks

select '##tag##' tag, count(*) N, avg(ViewCount) avg_views 
       
from Posts p
     join PostTags on p.Id = PostId
     join Tags t on t.Id = TagId
where PostTypeId = 1
      and TagName in ('##tag##')

Enter Parameters

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