https://school.programmers.co.kr/learn/courses/30/lessons/131113
정답
SELECT ORDER_ID
,PRODUCT_ID
,TO_CHAR(OUT_DATE,'YYYY-MM-DD') OUT_DATE
,CASE
WHEN TO_CHAR(OUT_DATE,'YYYY-MM-DD') <= '2022-05-01' THEN '출고완료'
WHEN TO_CHAR(OUT_DATE,'YYYY-MM-DD') > '2022-05-01' THEN '출고대기'
ELSE '출고미정' END 출고여부
FROM FOOD_ORDER
ORDER BY ORDER_ID
풀이
https://lavender1122.tistory.com/264