SELECT B.TITLE, B.BOARD_ID, R.REPLY_ID, R.WRITER_ID, R.CONTENTS, DATE_FORMAT(R.CREATED_DATE, '%Y-%m-%d') CREATED_DATE #R.*
FROM USED_GOODS_BOARD B
JOIN USED_GOODS_REPLY R
ON B.BOARD_ID=R.BOARD_ID
WHERE B.CREATED_DATE LIKE '2022-10%'
ORDER BY R.CREATED_DATE, B.TITLE
두 테이블에 다 writer_id
칼럼 있다고 무지성으로 조인조건으로 썼다가 겁나 틀림
WHERE DATE_FORMAT(B.CREATED_DATE,'%Y-%m') ='2022-10'