Python and R tagged posts, by month and year

0

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 IN ('r', 'python', 'pandas')
GROUP BY TagName,DATEPART(year,CreationDate),
  DATEPART(month,CreationDate)
ORDER BY PostYear, PostMonth

Enter Parameters

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