[프로그래머스 SQL] 22. 업그레이드 된 아이템 구하기

김건우's avatar
Apr 23, 2025
[프로그래머스 SQL] 22. 업그레이드 된 아이템 구하기

문제

notion image
notion image

내가 푼 코드

SELECT I.item_id, I.item_name, I.rarity FROM item_info AS I JOIN item_tree AS T ON I.item_id = T.item_id JOIN item_info AS P ON T.parent_item_id = P.item_id WHERE P.rarity = 'RARE' ORDER BY I.item_id DESC;
Share article

gunwoo