문제 정답 SELECT A.TITLE, B.BOARD_ID, B.REPLY_ID, B.WRITER_ID, B.CONTENTS, DATE_FORMAT(B.CREATED_DATE, '%Y-%m-%d') AS CREATED_DATE FROM USED_GOODS_BOARD AS A RIGHT JOIN USED_GOODS_REPLY AS B ON A.BOARD_ID = B.BOARD_ID WHERE A.CREATED_DATE LIKE '%2022-10%' ORDER BY B.CREATED_DATE, A.TITLE
문제 정답 SELECT BOOK_ID, DATE_FORMAT(PUBLISHED_DATE, '%Y-%m-%d') AS PUBLISHED_DATE FROM BOOK WHERE YEAR(PUBLISHED_DATE) = 2021 AND CATEGORY LIKE '%인문%' ORDER BY PUBLISHED_DATE
문제 정답 (SELECT DATE_FORMAT(SALES_DATE, "%Y-%m-%d") AS SALES_DATE, PRODUCT_ID, USER_ID, SALES_AMOUNT FROM ONLINE_SALE AS A WHERE MONTH(SALES_DATE) = 03 UNION SELECT DATE_FORMAT(SALES_DATE, "%Y-%m-%d") AS SALES_DATE, PRODUCT_ID, NULL AS USER_ID, SALES_AMOUNT FROM OFFLINE_SALE AS B WHERE MONTH(SALES_DATE) = 03 ) ORDER BY SALES_DATE, PRODUCT_ID, USER_ID