반응형
문제 : https://programmers.co.kr/learn/courses/30/lessons/59045
select A.ANIMAL_ID, A.ANIMAL_TYPE, A.NAME
from ANIMAL_INS A
left join ANIMAL_OUTS B
on A.ANIMAL_ID = B.ANIMAL_ID
where A.SEX_UPON_INTAKE like 'intact%'
and B.SEX_UPON_OUTCOME regexp 'Spayed|Neutered';
반응형