문제
풀이
SELECT a.name, a.datetime
from animal_ins as a left join animal_outs as b
on a.animal_id = b.animal_id
where b.animal_id is null
order by a.datetime
limit 3;
'algorithm' 카테고리의 다른 글
[programmers] MySQL - Lv.3 오랜 기간 보호한 동물 (2) (string, date) (0) | 2022.09.24 |
---|---|
[HackerRank] MySQL - Weather Observation Station 10 (0) | 2022.09.24 |
[HackerRank] MySQL - Weather Observation Station 9 (0) | 2022.09.22 |
[programmers] MySQL - Lv.2 중성화 여부 파악하기 (string, date) (0) | 2022.09.22 |
[HackerRank] MySQL - Weather Observation Station 8 (1) | 2022.09.21 |