Q&A for designers and implementers of computer programming languages
SELECT CAST(CreationDate AS DATE) as Date, COUNT(Id) as TotalPosts, AVG(ViewCount) as AverageViewCount FROM Posts WHERE PostTypeId = 1 GROUP BY CAST(CreationDate AS DATE) ORDER BY Date;