Q&A about the site for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles
select distinct count(*) over (partition by case when count(Posts.id) < 10 then 0 when count(Posts.id) >= 10 and count(Posts.id) <= 20 then 1 when count(Posts.id) > 20 then 2 end) as ss from Posts left join Users on Users.id = Posts.OwnerUserId group by Users.id