Q&A for people interested in the history and origins of science and mathematics
SELECT number = ROW_NUMBER() OVER (ORDER BY format(p.CreationDate, 'yyyy-MM')), format(p.CreationDate, 'yyyy-MM'), AVG(cast(p.Score as decimal)) FROM PostsWithDeleted p WHERE p.PostTypeId=1 GROUP BY format(p.CreationDate, 'yyyy-MM') ORDER BY format(p.CreationDate, 'yyyy-MM')