SELECT ITEM_DESCRIPTION, AVG(COST_PRICE) FROM BUILDING GROUP BY ITEM_DESCRIPTION; code example
Example: sql avg and group by
SELECT
AVG(depdelay),
origin
FROM flight_delays
WHERE distance > 2000
GROUP BY origin;
SELECT
AVG(depdelay),
origin
FROM flight_delays
WHERE distance > 2000
GROUP BY origin;