Ratio vote per user by age

0

Please login or register to vote for this query.

(click on this box to dismiss)

Worldbuilding

Q&A for writers/artists using science, geography and culture to construct imaginary worlds and settings

SELECT Age,
  (SUM(UpVotes + DownVotes)/COUNT(Age)) AS [Ratio vote per user],
  (SUM(UpVotes)/COUNT(Age)) AS [Ratio upvote per user],
  (SUM(DownVotes)/COUNT(Age)) AS [Ratio downvote per user]
  FROM Users
WHERE DateDiff(month, -12, GetDate()) < LastAccessDate
AND Age <> 0
AND AccountId <> -1
Group By Age Order By Age

Enter Parameters

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