레벨 4
JOIN
https://programmers.co.kr/learn/courses/30/lessons/59045
INNER JOIN으로 문제 해결
SELECT INS.ANIMAL_ID, INS.ANIMAL_TYPE, INS.NAME
FROM ANIMAL_INS INS
INNER JOIN ANIMAL_OUTS OUTS
ON INS.ANIMAL_ID = OUTS.ANIMAL_ID
WHERE INS.SEX_UPON_INTAKE IN ("Intact Male", "Intact Female") AND
OUTS.SEX_UPON_OUTCOME IN ("Spayed Female", "Neutered Male")
ORDER BY INS.ANIMAL_ID;