-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
💬 문제
https://school.programmers.co.kr/learn/courses/30/lessons/59408
💬 Idea
- 이름을 중복제거한 뒤 카운트를 구한다.
- 이 때 NULL값을 제거하기 위해 조건문을 사용해준다.
💬 풀이
SELECT COUNT(DISTINCT NAME) AS count
FROM ANIMAL_INS
WHERE NAME IS NOT NULL
💬 알게된 문법
DISTINCT
- 중복 제거할 때 사용