Q&A about the site for those interested in the study of the fundamental nature of knowledge, reality, and existence
select distinct count(*) over (partition by case when count(p.id) < 10 then 0 when count(p.id) >= 10 and count(p.id) <= 20 then 1 when count(p.id) > 20 then 2 end) from Posts as p left join Users as u on u.id = p.OwnerUserId group by u.id