I need to write a query to display the brand ID, brand name, brand type, and average price of products for the brand that has the largest average product price
I can get the avg price of all brands by entering:
SQL> SELECT LGPRODUCT.BRAND_ID, BRAND_NAME, BRAND_TYPE, ROUND(AVG(PROD_PRICE),2)
FROM BOFF.LGPRODUCT, BOFF.LGBRAND
WHERE LGPRODUCT.BRAND_ID = LGBRAND.BRAND_ID
GROUP BY LGPRODUCT.BRAND_ID, BRAND_NAME, BRAND_TYPE
ORDER BY LGPRODUCT.BRAND_ID;
but if I enter ROUND(MAX(AVG(PROD_PRICE)),2) I get an error, any suggestions?