반응형
SELECT COUNT(DISTINCT NAME)
FROM ANIMAL_INS;
www.w3schools.com/sql/sql_distinct.asp
SQL SELECT DISTINCT Statement
SQL SELECT DISTINCT Statement The SQL SELECT DISTINCT Statement The SELECT DISTINCT statement is used to return only distinct (different) values. Inside a table, a column often contains many duplicate values; and sometimes you only want to list the differe
www.w3schools.com
반응형
'IT > SQL' 카테고리의 다른 글
8★] 프로그래머스 동명 동물 수 찾기 (0) | 2020.11.04 |
---|---|
7] 프로그래머스 고양이와 개는 몇 마리 있을까 (0) | 2020.11.04 |
5] 프로그래머스 동물 수 구하기 (0) | 2020.11.04 |
4] 프로그래머스 최솟값 구하기 (0) | 2020.11.04 |
3] SQL 프로그래머스 최댓값 구하기 (0) | 2020.11.03 |
댓글