Q&A for users and developers of the Cardano cryptocurrency ecosystem
SELECT YEAR(CreationDate) AS year, MONTH(CreationDate) AS month, COUNT(Id) AS total_posts, COUNT(CASE WHEN ViewCount IS NULL THEN 1 END) AS zero_view_posts, COUNT(CASE WHEN ViewCount IS NOT NULL THEN 1 END) AS non_zero_view_posts FROM Posts GROUP BY YEAR(CreationDate), MONTH(CreationDate) ORDER BY year, month;