Q&A for Salesforce administrators, implementation experts, developers and anybody in-between
-- number of questions per day SELECT CONVERT(date, CreationDate) AS date, AVG(CAST(ViewCount AS FLOAT)) AS avg_views FROM Posts WHERE PostTypeID = 1 GROUP BY CONVERT(date, CreationDate) ORDER BY date DESC;