Average tag count per question

4

Please login or register to vote for this query.

(click on this box to dismiss)

Returns average number of tags per question on a site. Additionally it also returns tag count breakdown with question counts. Best viewed as "Text-only results"

Monero Meta

Q&A about the site for developers and users of the secure, private and untraceable cryptocurrency Monero

with Counts as (
  select
    len(Tags) - len(replace(Tags, '<', '')) as Tags,
    count(*) as QuestionCount
  from Posts
  where PostTypeId = 1
  group by len(Tags) - len(replace(Tags, '<', ''))
  )
select sum(Tags * QuestionCount) / sum(QuestionCount)
from Counts

Enter Parameters

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