Exercise 1

0

Please login or register to vote for this query.

(click on this box to dismiss)

Joomla

Q&A for Joomla! administrators, users, developers and designers

SELECT TagName, AVG(Score) AS AvgScore
FROM (
  Posts AS p
  JOIN PostTags AS pt ON pt.PostId = p.Id
  JOIN Tags AS t ON t.Id = pt.TagId
)
WHERE Count>4
GROUP BY TagName
ORDER BY AvgScore DESC

Enter Parameters

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