Posts with x Views By Date

1

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers Meta

Q&A about the site for Drupal developers and administrators

SELECT
  CAST(CreationDate AS DATE) AS [Date Posted],
  COUNT(CASE WHEN ViewCount > ##NumViews:int?10000## THEN 1 ELSE NULL END) AS [Num. 10k Viewed Posts on Day]
FROM Posts
WHERE PostTypeId = 1 -- Q's only
GROUP BY CAST(CreationDate AS DATE)
ORDER BY CAST(CreationDate AS DATE) DESC

-- NumViews: View Count Threshold:

Enter Parameters

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