Tags by average number of views per post

0

Please login or register to vote for this query.

(click on this box to dismiss)

Mathematics

Q&A for people studying math at any level and professionals in related fields

SELECT t.TagName, AVG(p.ViewCount) AS Views, count(p.Id) as [Number of Posts]
  FROM Posts p 
JOIN PostTags pt
  ON p.Id = pt.PostId
JOIN Tags t
  ON pt.TagId = t.id
GROUP BY t.TagName 
ORDER BY Views DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results