글
프로그래머스 레벨2 동명 동물 수 찾기(오라클SQL, group by, having)
SQL프로그래밍
2023. 3. 12. 00:30
728x90
SMALL



-- 코드를 입력하세요
SELECT
NAME,
COUNT(NAME) as count
from ANIMAL_INS
group by NAME HAVING count(NAME) > 1
order by NAME;
728x90
'SQL프로그래밍' 카테고리의 다른 글
프로그래머스 레벨1 역순 정렬하기(오라클SQL, 개쉬움) (0) | 2023.03.13 |
---|---|
프로그래머스 레벨1 동물의 아이디와 이름(오라클SQL) (0) | 2023.03.13 |
프로그래머스 레벨1 이름이 있는 동물의 아이디(오라클SQL) (0) | 2023.03.12 |
프로그래머스 레벨1 상위 n개 레코드(오라클SQL) (0) | 2023.02.11 |
프로그래머스 레벨3 자동차 대여 기록에서 대여중 / 대여 가능 여부 확인하기(오라클SQL, MAX, case when) (0) | 2023.02.11 |