Anton.Sandbox

1

Please login or register to vote for this query.

(click on this box to dismiss)

Salesforce

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;

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results