Average votes for mid-level users

0

Please login or register to vote for this query.

(click on this box to dismiss)

Calculate the average upvotes for users with 1000-10000 reputation

Stack Overflow

Q&A for professional and enthusiast programmers

-- Average votes for mid-level users
-- Calculate the average upvotes for users with 1000-10000 reputation

SELECT
   COUNT(0) AS NumUsers,
   AVG(UpVotes) AS AvrUpVotes,
   AVG(DownVotes) AS AvrDownVotes,
   AVG(datediff(day, CreationDate, GETDATE())) AS AvrDaysMember
FROM
   Users
WHERE
   Reputation > 1000 AND
   Reputation < 10000;

Enter Parameters

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