
https://programmers.co.kr/learn/courses/30/parts/17046
select o.animal_id, o.name
from animal_outs o left outer join animal_ins i
on o.animal_id = i.animal_id
where i.animal_id is null;
select o.animal_id, o.name
from animal_outs o inner join animal_ins i
on o.animal_id = i.animal_id
where o.datetime < i.datetime
order by i.datetime;
select i.name, i.datetime
from animal_ins i left outer join animal_outs o
on i.animal_id = o.animal_id
where o.animal_id is null
order by i.datetime limit 3;
select i.animal_id, i.animal_type, i.name
from animal_ins i inner join animal_outs o
on i.animal_id = o.animal_id
where i.sex_upon_intake like 'Intact%'
and o.sex_upon_outcome not like 'Intact%'
order by i.animal_id;