SELECT id_klienta, AVG(kwota) AS srednia_kwota FROM zamowienia GROUP BY id_klienta;