๋ฐ์ํ
https://school.programmers.co.kr/learn/courses/30/lessons/131113
-- ์ฝ๋๋ฅผ ์
๋ ฅํ์ธ์
SELECT ORDER_ID, PRODUCT_ID, date_format(OUT_DATE, "%Y-%m-%d") as OUT_DATE,
case when OUT_DATE is null then '์ถ๊ณ ๋ฏธ์ '
when OUT_DATE <= '2022-05-01' then '์ถ๊ณ ์๋ฃ'
when OUT_DATE > '2022-05-01' then '์ถ๊ณ ๋๊ธฐ'
end as ์ถ๊ณ ์ฌ๋ถ
from FOOD_ORDER
order by ORDER_ID
๋ฐ์ํ