문제
풀이
SELECT b.animal_id, b.animal_type, b.name
from animal_ins a join animal_outs b
on a.animal_id = b.animal_id
where a.sex_upon_intake like 'Intact%' and
(b.sex_upon_outcome like 'Spayed%' or
b.sex_upon_outcome like 'Neutered%')
order by b.animal_id;
'algorithm' 카테고리의 다른 글
[HackerRank] MySQL - Type of Triangle (0) | 2022.10.02 |
---|---|
[HackerRank] MySQL - Employee Salaries (0) | 2022.09.29 |
[HackerRank] MySQL - Employee Names (0) | 2022.09.28 |
[programmers] MySQL - Lv.3 헤비 유저가 소유한 장소 (0) | 2022.09.28 |
[HackerRank] MySQL - Higher Than 75 Marks (0) | 2022.09.27 |