[ํ๋ก๊ทธ๋๋จธ์ค] ์กฐ๊ฑด์ ๋ถํฉํ๋ ์ค๊ณ ๊ฑฐ๋ ์ํ ์กฐํํ๊ธฐ | ์ค๋ผํด
ยท
๐ Coding Test/SQL
[level 2] ์กฐ๊ฑด์ ๋ถํฉํ๋ ์ค๊ณ ๊ฑฐ๋ ์ํ ์กฐํํ๊ธฐ - 164672๋ฌธ์ ๋งํฌ์ฑ๋ฅ ์์ฝ๋ฉ๋ชจ๋ฆฌ: 0.0 MB, ์๊ฐ: 0.00 ms๊ตฌ๋ถ์ฝ๋ฉํ
์คํธโ
์ฐ์ต > String๏ผโ
Date์ ๋ตSELECT BOARD_ID, WRITER_ID, TITLE, PRICE, CASE WHEN STATUS = 'SALE' THEN 'ํ๋งค์ค' WHEN STATUS = 'RESERVED' THEN '์์ฝ์ค' ELSE '๊ฑฐ๋์๋ฃ' END AS STATUSFROM USED_GOODS_BOARDWHERE TO_CHAR(CREATED_DATE, 'YYYY-MM-DD') = '2022-10-05'ORDER BY BOARD_ID DESC;