๋ฐ์ํ
https://school.programmers.co.kr/learn/courses/30/lessons/59409
-- ์ฝ๋๋ฅผ ์
๋ ฅํ์ธ์
SELECT ANIMAL_ID, NAME,
case when SEX_UPON_INTAKE like 'Neutered%' or SEX_UPON_INTAKE like 'Spayed%'
then 'O' else 'X' end ์ค์ฑํ
from ANIMAL_INS
order by ANIMAL_ID
๋ฐ์ํ