문제 링크 - https://school.programmers.co.kr/learn/courses/30/lessons/59043
SELECT INS.ANIMAL_ID, INS.NAME FROM ANIMAL_INS INS LEFT OUTER JOIN ANIMAL_OUTS OUTS ON OUTS.ANIMAL_ID = INS.ANIMAL_ID WHERE INS.DATETIME > OUTS.DATETIME ORDER BY INS.DATETIME