Average votes for all popular tags


Please login or register to vote for this query.

(click on this box to dismiss)

Ukrainian Language

Q&A for linguists, teachers and students of the Ukrainian language

-- @author: Moradnejad --
SELECT TagName, CNT, Score
  SELECT TagName, count(*) as CNT, AVG(Cast(Score as Float)) as Score
    FROM (
      SELECT p.id, T.TagName, p.Score
      from posts as p
      inner join PostTags as pt on pt.PostId=p.Id
      inner join Tags as t on t.Id=pt.TagId
    ) as t1
  group by TagName
  ) as t2
order by Score desc

Enter Parameters

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