Split users by amount of reputation digits

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

Select Len(Convert(nvarchar(20), Reputation)) As [Rep Digits], 
    Count(Id) As [Users Count]
From Users
Group By Len(Convert(nvarchar(20), Reputation))
Order By [Rep Digits] Asc

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results