문제
풀이
SELECT a.animal_id, a.name
from animal_ins a join animal_outs b
on a.animal_id = b.animal_id
where a.datetime > b.datetime
order by a.datetime
'algorithm' 카테고리의 다른 글
[programmers] MySQL - Lv.3 없어진 기록 찾기 (join) (0) | 2022.09.27 |
---|---|
[HackerRank] MySQL - Weather Observation Station 12 (0) | 2022.09.26 |
[HackerRank] MySQL - Weather Observation Station 11 (0) | 2022.09.24 |
[programmers] MySQL - Lv.3 오랜 기간 보호한 동물 (2) (string, date) (0) | 2022.09.24 |
[HackerRank] MySQL - Weather Observation Station 10 (0) | 2022.09.24 |