Returns the Users with the highest number of total views for their questions
Q&A for enthusiasts and power users of the Android operating system
-- Users with highst number of combined Views -- Returns the Users with the highest number of total views for their questions SELECT Users.Id AS [User Link], Sum(ViewCount) AS TotalViews, Count(*) AS NumberOfQuestions, Sum(ViewCount)/Count(*) AS AvgViewsPerQuestion FROM Posts INNER JOIN Users ON Users.Id = Posts.OwnerUserId WHERE PostTypeId = 1 GROUP BY Users.Id ORDER BY TotalViews DESC