Non-returning users per month as a function of reputation.
Q&A for professional robotic engineers, hobbyists, researchers and students
-- User drop-off with reputation -- Non-returning users per month as a function of reputation. create table #Temp (month int) declare @counter int set @counter = 0 while @counter <= 20 begin insert #Temp(month) values(@counter) set @counter = @counter + 1 end select #Temp.month as [Months Since Last Seen], Users.Id, Reputation from #Temp left outer join Users on DATEDIFF (month,LastAccessDate,GETDATE()) = #Temp.month order by Id