Home Programmers. Find number of animals with same name
Post
Cancel

Programmers. Find number of animals with same name

[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;
This post is licensed under CC BY 4.0 by the author.