(적격한 중고 거래 상태 검색)
양식 설명
질문
설명하다
SELECT BOARD_ID, WRITER_ID, TITLE, PRICE, (CASE WHEN STATUS='SALE' THEN '판매중' WHEN STATUS='RESERVED' THEN '예약중' ELSE '거래완료' END) AS STATUS
FROM USED_GOODS_BOARD
WHERE DATE_FORMAT(CREATED_DATE, '%Y-%m-%d') = '2022-10-05'
ORDER BY BOARD_ID DESC