Q&A for teachers and students of the Esperanto language
SELECT Top 3 YEAR(pst.CreationDate) as "Year" ,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 YEAR(pst.CreationDate) ;