[Link] https://programmers.co.kr/learn/courses/30/lessons/59041
1
2
3
4
5
6
SELECT NAME, COUNT(NAME) AS COUNT
FROM ANIMAL_INS
WHERE NAME IS NOT NULL
GROUP BY NAME
HAVING COUNT(*) >= 2
ORDER BY NAME ASC;
[Link] https://programmers.co.kr/learn/courses/30/lessons/59041
1
2
3
4
5
6
SELECT NAME, COUNT(NAME) AS COUNT
FROM ANIMAL_INS
WHERE NAME IS NOT NULL
GROUP BY NAME
HAVING COUNT(*) >= 2
ORDER BY NAME ASC;