Views per year

0

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

SELECT 
    YEAR(CreationDate), 
    Count(*) AS Questions, 
    Sum(Cast(Posts.ViewCount as bigint)) AS Views
   FROM Posts
  WHERE Posts.PostTypeId = 1 
  GROUP BY  YEAR(CreationDate)
  ORDER BY YEAR(CreationDate)

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results