SQL/JOIN
[프로그래머스 ORACLE SQL]조건에 맞는 도서와 저자 리스트 출력하기★TO_CHAR()
goAhEAd_29
2023. 6. 22. 17:11
728x90
반응형
https://school.programmers.co.kr/learn/courses/30/lessons/144854
SELECT A.BOOK_ID AS BOOK_ID, B.AUTHOR_NAME AS AUTHOR_NAME , TO_CHAR(A.PUBLISHED_DATE,'YYYY-MM-DD') AS PUBLISHED_DATE
FROM BOOK A LEFT JOIN AUTHOR B
ON A.AUTHOR_ID = B.AUTHOR_ID
WHERE A.CATEGORY = '경제'
ORDER BY A.PUBLISHED_DATE ASC
728x90
반응형