[Programmers] 2021 Dev-Matching 웹 백엔드 개발자(상반기) 헤비 유저가 소유한 장소 - MySQL

최영환·2022년 9월 30일
0
post-thumbnail

💡 문제

💬 입출력 예시

📌 풀이(소스코드)

select *
from places
where host_id in (select host_id
                  from places
                  group by host_id
                  having count(host_id) > 1)

📄 해설

  • 문제의 요구대로 단순히 HOST_ID 가 2개 이상인 경우를 조회하면 됨
profile
조금 느릴게요~

0개의 댓글