Python and R tagged posts, by month and year


Please login or register to vote for this query.

(click on this box to dismiss)

Travel Answers

Q&A for road warriors and seasoned travelers

SELECT COUNT(Posts.Id) As PostCnt, TagName,
  CAST(DATEPART(year,CreationDate) As VarChar) + '-' + 
  CAST(DATEPART(month,CreationDate) As VarChar) As YearMonth,
  DATEPART(year,CreationDate) As PostYear,
  DATEPART(month,CreationDate) As PostMonth
FROM PostTags
INNER JOIN Tags ON PostTags.TagId = Tags.Id
INNER JOIN Posts ON PostTags.PostId = Posts.Id
WHERE Tags.TagName = 'r' OR Tags.TagName = 'python' OR Tags.TagName LIKE 'panda%'
GROUP BY TagName,DATEPART(year,CreationDate),
ORDER BY PostYear, PostMonth

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results