본문 바로가기
Algorithm/PROGRAMMERS[MySQL]

Lv3. 있었는데요 없었습니다

by 씨니 2022. 5. 21.
728x90

▶ 문제

 

▶ 풀이방법

SELECT O.ANIMAL_ID, O.NAME
FROM ANIMAL_INS I JOIN ANIMAL_OUTS O ON I.ANIMAL_ID = O.ANIMAL_ID
WHERE I.DATETIME > O.DATETIME
ORDER BY I.DATETIME
728x90