https://programmers.co.kr/learn/courses/30/lessons/59040

동물 보호소에 들어온 동물 중 고양이와 개가 각각 몇 마리인지 조회하는 SQL문을 작성해주세요. 이때 고양이를 개보다 먼저 조회해주세요.

-- 코드를 입력하세요
SELECT animal_type, count(*)
from animal_ins
where animal_type in('Cat', 'Dog')
group by animal_type
order by animal_type

+ Recent posts