number of posts per month by tagname

0

Please login or register to vote for this query.

(click on this box to dismiss)

Physical Fitness Meta

Q&A about the site for physical fitness professionals, athletes, trainers, and those providing health-related needs

SELECT COUNT(Posts.Id),
  MONTH(Posts.CreationDate),
  YEAR(Posts.CreationDate),
  Tags.TagName
FROM Posts 
  JOIN PostTags ON Posts.id = PostTags.PostId 
  JOIN Tags ON Tags.Id = PostTags.TagId
  WHERE Tags.TagName = 'mongodb' or Tags.TagName = 'couchbase'
  GROUP BY YEAR(Posts.CreationDate), MONTH(Posts.CreationDate), Tags.TagName

Enter Parameters

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