select count(1) as [Count], SUBSTRING(CAST (Reputation as...


Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

select count(1) as [Count], SUBSTRING(CAST (Reputation as varchar), 1, 1) as FirstDigigt, LEN(CAST (Reputation as varchar)) as NumDigits
from Users group by SUBSTRING(CAST (Reputation as varchar), 1, 1), LEN(CAST (Reputation as varchar))
order by FirstDigigt asc, NumDigits asc

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results