Looking at the duration from when a user created their account till the last post, who gained the most rep per day
Q&A for scientists using computers to solve scientific problems
-- Rising stars, top 50 users ordered on rep per day -- Looking at the duration from when a user created their account till -- the last post, who gained the most rep per day set nocount on DECLARE @endDate datetime SELECT @endDate = max(CreationDate) from Posts set nocount off SELECT TOP 50 Id AS [User Link], Reputation, Days, Reputation/Days AS RepPerDays FROM ( SELECT *, CONVERT(int, @endDate - CreationDate) as Days FROM Users WHERE CreationDate > '2023-01-01' ) AS UsersAugmented WHERE Reputation > 1000 ORDER BY RepPerDays DESC