코딩테스트 연습 > 2021 Dev-Matching: 웹 백엔드 개발자(상반기) > 헤비 유저가 소유한 장소
https://school.programmers.co.kr/learn/courses/30/lessons/77487


동일한 host_id로 2개 이상 글이 작성되어있으면 헤비 유저이므로,
host_id가 2개 이상인 것들을 서브쿼리를 통해 가져온다.
group by로 host_id를 묶고, having에 count(host_id)가 2이상인 것들을 바깥 쿼리 where절에서 비교한다.
select id, name, host_id
from places
where host_id in (select host_id
from places
group by host_id
having count(host_id) >= 2)
order by id asc
where 절을 잘 이용하자.