задание 3 одним запросом


Please login or register to vote for this query.

(click on this box to dismiss)

Esperanto Language

Q&A for teachers and students of the Esperanto language

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

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results