[프로그래머스.SQL] SUM, MAX, MIN
가격이 비싼 식품의 정보 출력하기# ORDER BY 사용SELECT PRODUCT_ID, PRODUCT_NAME, PRODUCT_CD, CATEGORY, PRICEFROM FOOD_PRODUCTORDER BY PRICE DESC LIMIT 1;# MAX 사용SELECT *FROM FOOD_PRODUCTWHERE PRICE = (SELECT MAX(PRICE) FROM FOOD_PRODUCT);# FETCH FIRST N ROWS ONLY 사용SELECT *FROM FOOD_PRODUCTORDER BY PRICE DESCFETCH FIRST 1 ROWS ONLY; 가장 비싼 상품 구하기# ORDER BY, limitSELECT PRICE AS MAX_PRICEFROM PRODUCTORDER BY PRICE..