Enter the minimum number of posts that a user must have, and this will show the users who have the highest reputation per post in that group.
Q&A for professional and enthusiast programmers
-- Users With the Highest Quality Posts (filter num posts) -- Enter the minimum number of posts that a user must have, and this will show the -- users who have the highest reputation per post in that group. DECLARE @MinPosts int = ##MinNumberOfPosts## SELECT Id AS [User Link], Reputation, counts.[# Posts], Reputation / counts.[# Posts] AS [Rep Per Post] FROM Users CROSS APPLY ( SELECT COUNT(*) FROM posts WHERE posts.OwnerUserId = Users.Id ) counts([# Posts]) WHERE counts.[# Posts] > @MinPosts ORDER BY [Rep Per Post] DESC