Tags by # of unanswered count filtered by Year

0

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers

Q&A for Drupal developers and administrators

SELECT t.TagName, COUNT(DISTINCT(p.Id))
  FROM Tags AS t
  INNER JOIN PostTags AS pt ON t.Id = pt.TagId
  INNER JOIN Posts AS p ON p.Id = pt.PostId
  WHERE p.AnswerCount = 0 AND year(p.CreationDate) = ##Year## 
  GROUP BY t.TagName
  ORDER BY COUNT(DISTINCT(p.Id)) DESC

Enter Parameters

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