[프로그래머스/SQL]가격이 제일 비싼 식품의 정보 출력하기

gov's avatar
Dec 03, 2024
[프로그래머스/SQL]가격이 제일 비싼 식품의 정보 출력하기
Contents
문제풀이

문제

notion image

풀이

order by price desc 제일 비싼 가격 순 정렬
limit 1 가장 첫번째 값 가져오기
SELECT * from food_product order by price desc limit 1;
Share article

goho