[프로그래머스/SQL]아픈 동물 찾기

gov's avatar
Nov 14, 2024
[프로그래머스/SQL]아픈 동물 찾기
Contents
문제풀이

문제

notion image

풀이

= 연산자: 두 값을 비교. 문자열, 숫자, 날짜
IS 연산자: NULL 값과 같은 특별한 조건 비교
NULL 값 비교: IS NULL 또는 IS NOT NULL사용
SELECT animal_id, name FROM animal_ins WHERE intake_condition = 'sick' ORDER BY animal_id ASC;
Share article

goho