Question stats by tag


Please login or register to vote for this query.

(click on this box to dismiss)

Audio-Video Production Meta

Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation

with median as (
  select TagName, ViewCount,
                  WITHIN GROUP (ORDER BY ViewCount)
                  OVER (PARTITION BY TagName)
  from Posts p
       join PostTags on p.Id = PostId
       join Tags t on t.Id = TagId
  where PostTypeId = 1
        and TagName in (##tag##)

select TagName, count(*) N, avg(ViewCount) avg_views, median_views  
from median
group by TagName, median_views

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results