javatesting

0

Please login or register to vote for this query.

(click on this box to dismiss)

Mathematics Meta

Q&A about the site for people studying math at any level and professionals in related fields

SELECT
	DATEADD(mm, (Year(Posts.CreationDate) - 1900) * 12 + Month(Posts.CreationDate) - 1, 0) AS Month,
	Tags.TagName, COUNT(*) AS Questions

	FROM Tags
	LEFT JOIN PostTags ON PostTags.TagId = Tags.Id
	LEFT JOIN Posts ON Posts.Id = PostTags.PostId
	LEFT JOIN PostTypes ON PostTypes.Id = Posts.PostTypeId
WHERE
	Tags.TagName IN (
		'pyunit', 'py.test'
	) AND

	PostTypes.Name = 'Question' AND
	Posts.CreationDate < DATEADD(month, DATEDIFF(month, 0, GETDATE()), 0)
GROUP BY
	Year(Posts.CreationDate), Month(Posts.CreationDate), Tags.TagName
ORDER BY
	Year(Posts.CreationDate), Month(Posts.CreationDate), Tags.TagName

Enter Parameters

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