보호소에서 중성화한 동물
🙆♀️ 정답 풀이 SELECT ANIMAL_ID, ANIMAL_TYPE, NAME FROM ANIMAL_INS WHERE SEX_UPON_INTAKE REGEXP 'Intact' AND ANIMAL_ID IN (SELECT ANIMAL_ID FROM ANIMAL_OUTS WHERE SEX_UPON_OUTCOME REGEXP 'Spayed|Neutered') ORDER BY ANIMAL_ID;
SELECT ANIMAL_ID, ANIMAL_TYPE, NAME FROM ANIMAL_INS WHERE SEX_UPON_INTAKE REGEXP 'Intact' AND ANIMAL_ID IN (SELECT ANIMAL_ID FROM ANIMAL_OUTS WHERE SEX_UPON_OUTCOME REGEXP 'Spayed|Neutered') ORDER BY ANIMAL_ID;