Q&A for ebook publishers and readers
SELECT CreationDate , Score , avg(CAST(Score AS FLOAT)) OVER ( ORDER BY CreationDate ROWS BETWEEN ##RollingAvg:INT?10## PRECEDING AND CURRENT ROW ) AS RollingAvg FROM Posts WHERE PostTypeId = 2 AND OwnerUserId = ##UserId:INT##;