[프로그래머스][MYSQL][Level 2][59406] 동물 수 구하기
문제 링크
정답
1
2
3
SELECT count(DISTINCT NAME)
FROM ANIMAL_INS
WHERE NAME IS NOT NULL
정답 2
1
2
SELECT count(DISTINCT NAME)
FROM ANIMAL_INS
해설
COUNT(expression) does not count NULL values. It can optionally count or not count duplicate field values.
Success Notice: 수고하셨습니다.
Leave a comment