Q&A for active researchers, academics and students of physics
Select sum(case when q.cnt < 10 then 1 else 0 end), sum(case when q.cnt between 10 and 20 then 1 else 0 end), sum(case when q.cnt > 20 then 1 else 0 end) from ( Select Count(*) as cnt from Posts where PostTypeId= 1 Group by OwnerUserId ) as q