IT/SQL
5] 프로그래머스 동물 수 구하기
깻잎쌈
2020. 11. 4. 22:55
반응형
programmers.co.kr/learn/courses/30/lessons/59406
코딩테스트 연습 - 동물 수 구하기
ANIMAL_INS 테이블은 동물 보호소에 들어온 동물의 정보를 담은 테이블입니다. ANIMAL_INS 테이블 구조는 다음과 같으며, ANIMAL_ID, ANIMAL_TYPE, DATETIME, INTAKE_CONDITION, NAME, SEX_UPON_INTAKE는 각각 동물의 아이디
programmers.co.kr
전체 데이터 갯수 구하기
SELECT COUNT( ANIMAL_ID)
FROM ANIMAL_INS;
www.w3schools.com/sql/sql_count_avg_sum.asp
SQL COUNT(), AVG() and SUM() Functions
SQL COUNT(), AVG() and SUM() Functions The SQL COUNT(), AVG() and SUM() Functions The COUNT() function returns the number of rows that matches a specified criterion. The AVG() function returns the average value of a numeric column. The SUM() function retur
www.w3schools.com
반응형