Q&A for professional and enthusiast programmers
select Username as [User Link], UserId as [User Id], Reputation, DayCount % 100 as Percentage, Floor(DayCount / 100) as [Badges earned], Cast(DayCount as Float) / Cast(Reputation as Float) as [Socratic per rep] from (select U.Id as Username, U.Id as UserId, U.Reputation as Reputation, ( select Count(distinct Convert(date, P.CreationDate)) from Posts as P where P.PostTypeId = 1 and P.Score > 0 and P.ClosedDate is null and P.OwnerUserId = U.Id ) as DayCount from Users as U ) as Data where DayCount > 0 order by [Socratic per rep] desc, DayCount % 100 desc