코딩테스트[파이썬]/프로그래머스 sql 고득점 kit

JOIN - 없어진 기록 찾기

softmoca__ 2024. 2. 28. 20:42
목차

https://school.programmers.co.kr/learn/courses/30/lessons/59042

 

-- 코드를 입력하세요
SELECT O.ANIMAL_ID,O.NAME
from ANIMAL_OUTS AS O
left join ANIMAL_INS  as I on O.ANIMAL_ID=I.ANIMAL_ID
where I.ANIMAL_ID is NULL
order by O.ANIMAL_ID