select top 100 t.TagName as [Tag], count(disti...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Italian Language Meta

Q&A about the site for students, teachers, and linguists wanting to discuss the finer points of the Italian language

select top 100
  t.TagName            as [Tag],
  count(distinct u.Id) as [Users],
  count(distinct p.Id) as [Questions],
  round(count(distinct p.Id) * 1.0 / count(distinct u.Id),2)
                       as [Average Number of Questions per User]
from
   users    u  inner join
   posts    p  on u.Id = p.OwnerUserId
               inner join
   posttags pt on p.Id = pt.PostId
               inner join
   tags     t  on pt.TagId = t.Id
where p.PostTypeId = 1
group by t.Id, t.TagName
order by 4 desc;

Enter Parameters

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