And probably the op would prefer to avoid recalculating the sum once for every row..... select name,ges_kw_zgb, round(100*ges_kw_zgb/total.totalsum, 2) as z from energie.tennet_auswertung_2010, (select sum(ges_kw_zgb) totalsum
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных