카테고리 없음
[프로그래머스] 조건에 부합하는 중고거래 댓글 조회하기
pooney
2023. 6. 4. 23:49
SELECT UGB.TITLE, UGB.BOARD_ID, UGR.REPLY_ID, UGR.WRITER_ID, UGR.CONTENTS, DATE_FORMAT(UGR.CREATED_DATE, '%Y-%m-%d') as CREATED_DATE
FROM USED_GOODS_BOARD UGB
INNER JOIN USED_GOODS_REPLY UGR ON UGB.BOARD_ID = UGR.BOARD_ID
WHERE DATE_FORMAT(UGB.CREATED_DATE ,'%Y-%m') = '2022-10'
ORDER BY UGR.CREATED_DATE ASC , TITLE ASC
https://school.programmers.co.kr/learn/courses/30/lessons/164673