SELECT tgs.TagName as Tag ,CONCAT(YEAR(pst.CreationDate),...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Esperanto Language

Q&A for teachers and students of the Esperanto language

SELECT
	tgs.TagName as Tag
    ,CONCAT(YEAR(pst.CreationDate),FORMAT(Month(pst.CreationDate),'00')) as YearMonth
	,usr.DisplayName as "User"
	,COUNT(DISTINCT usr.Id) as NoOfUsers
	,COUNT(DISTINCT pst.Id) as NoOfPosts
FROM Users usr
	Inner Join Posts pst ON pst.OwnerUserID = usr.Id
	Inner Join PostTags psttg ON psttg.PostId = pst.Id
	Inner Join Tags tgs ON tgs.Id = psttg.TagId
WHERE 1=1
	and UPPER(usr.DisplayName) like 'ANDR%'
	and UPPER(tgs.TagName) = 'CSS'
	and pst.CreationDate >= CAST('2019-01-01' AS DATE)
	and pst.CreationDate <  CAST('2020-01-01' AS DATE)
GROUP BY tgs.TagName, CONCAT(YEAR(pst.CreationDate),FORMAT(Month(pst.CreationDate),'00')),usr.DisplayName
ORDER BY YearMonth
;

Enter Parameters

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