Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Sql] 가격이 제일 비싼 식품의 정보 출력하기 #219

Closed
hwangJi-dev opened this issue Apr 27, 2023 · 0 comments
Closed

[Sql] 가격이 제일 비싼 식품의 정보 출력하기 #219

hwangJi-dev opened this issue Apr 27, 2023 · 0 comments

Comments

@hwangJi-dev
Copy link
Owner

hwangJi-dev commented Apr 27, 2023

💬 문제

https://school.programmers.co.kr/learn/courses/30/lessons/131115


💬 Idea

  • 서브쿼리로 가격이 제일 비싼 것을 찾아내 조건으로 걸어준다!

💬 풀이

SELECT *
FROM FOOD_PRODUCT
WHERE PRICE = (SELECT MAX(PRICE) FROM FOOD_PRODUCT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant