Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- Python
- createSlice
- redux-toolkit
- json-server
- react-redux
- 리액트
- axios
- maeil-mail
- useDispatch
- programmers
- 테코테코
- 자바
- C++
- react
- 매일메일
- sw expert academy
- JavaScript
- Algorithm
- redux-saga
- redux
- 이코테
- java
- 알고리즘
- 항해99
- 코딩테스트합격자되기
- Get
- react-router
- 프로그래머스
- 항해플러스
- SW
Archives
- Today
- Total
Binary Journey
[프로그래머스] 헤비 유저가 소유한 장소 (MySQL) 본문
반응형
출처: 프로그래머스 코딩 테스트 연습, https://programmers.co.kr/learn/challenges
MySQL 문제들은 아쉽게도 점수가 없어 순위에 영향을 주지 않는다.
SELECT ID, NAME, HOST_ID
FROM PLACES
WHERE HOST_ID IN (
SELECT HOST_ID
FROM PLACES
GROUP BY HOST_ID
HAVING COUNT(*) > 1
)
ORDER BY ID ASC;
참고: https://thispointer.com/mysql-select-where-count-is-greater-than-one-solved/
MySQL Select where Count is greater than one [Solved] – thispointer.com
In this article, we will be looking into the count() function with select statement and conditions. Table of Contents Select where count is greater than one : using HAVING ClauseSelect where count is greater than one : using JOINSSelect where count is grea
thispointer.com
반응형
'프로그래머스 > level 3' 카테고리의 다른 글
[프로그래머스] 이중우선순위큐 (2) | 2022.06.23 |
---|---|
[프로그래머스] 베스트 앨범 (0) | 2022.05.20 |
[프로그래머스] 순위 (0) | 2022.04.21 |
[프로그래머스] 가장 먼 노드 (0) | 2022.04.21 |
[프로그래머스] 정수 삼각형 (0) | 2022.03.16 |