SELECT DATEFROMPARTS(YEAR(CreationDate), Month(CreationDa...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Literature Meta

Q&A about the site for scholars and enthusiasts of literature

SELECT 
DATEFROMPARTS(YEAR(CreationDate), Month(CreationDate), 1) [Month],
  --COUNT(*) [Total],
  SUM(CASE WHEN Tags LIKE '%<aws%>%' THEN 1 ELSE 0 END) [AWS],
  SUM(CASE WHEN Tags LIKE '%<azure%>%' THEN 1 ELSE 0 END) [Azure],
  SUM(CASE WHEN Tags LIKE '%<google-cloud%>%' THEN 1 ELSE 0 END) [GoogleCloud]
FROM Posts
WHERE PostTypeId = 1
AND CreationDate >= '2019-01-01'
GROUP BY DATEFROMPARTS(YEAR(CreationDate), Month(CreationDate), 1)
ORDER BY 1

Enter Parameters

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