Top Rep Rate

0

Please login or register to vote for this query.

(click on this box to dismiss)

Removes early users and inactive users

Open Data

Q&A for developers and researchers interested in open data

-- Top Rep Rate
-- Removes early users and inactive users

Declare @minrep as  int 
SET @minrep = ##minrep##



;With postsPerUser as
(Select count(id) postCount, --MAX(CreationDate) last_post_date,
OwnerUserId FROM POSTS
GROUP BY OwnerUserId)
SELECT top 500
u.id [User Link],
u.displayname, u.reputation, postCount,
(cast(u.reputation as decimal(10,2)) / cast(p.postCount as decimal(10,2))  ) repRate
FROM
Users u inner join postsPerUser p
ON u.id = p.OwnerUserId
where
postCount > 9 
-- and last_post_date > '1/1/2011'
order by cast(u.reputation as decimal(10,2)) / cast(p.postCount as decimal(10,2))  desc

Enter Parameters

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