Как средний максимальный mysql
SELECT AVG(amount)
FROM orders
GROUP BY cust;
Ali Shams Eddine
SELECT AVG(amount)
FROM orders
GROUP BY cust;