SELECT KAT, COUNT(1) AS POCET FROM( select ownerUserId, p...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Italian Language Meta

Q&A about the site for students, teachers, and linguists wanting to discuss the finer points of the Italian language

SELECT KAT, COUNT(1) AS POCET 
FROM(
    select ownerUserId,
           pocet,
           case  when pocet<=10 then 9
                 else 11
           end as kat
    from(
      SELECT  p.ownerUserId, count(1) as pocet
      FROM POSTS P
      WHERE  p.ownerUserId is not null
        and PostTypeId in (1,2)
      group by p.ownerUserId
     )A
    )B
GROUP BY KAT;

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results