[Programmers] SQL - 헤비 유저가 소유한 장소

DMIS·2022년 3월 9일
0

SQL

목록 보기
25/48
post-thumbnail

문제

풀이

서브쿼리를 이용하여 해결하였다.

select * from places
where host_id in (select host_id from places
                  group by host_id
                  having count(*)>=2)
order by id
profile
Data + Math

0개의 댓글