SELECT DATETIME AS 시간
FROM ANIMAL_INS
ORDER BY DATETIME DESC
LIMIT 1;
max 함수 사용
SELECT MAX(DATETIME) AS 시간
FROM ANIMAL_INS
SELECT MIN(DATETIME) AS 시간
FROM ANIMAL_INS
SELECT COUNT(ANIMAL_ID) AS count
FROM ANIMAL_INS
SELECT COUNT(DISTINCT NAME)
FROM ANIMAL_INS
DISTINCT