Re: Create loop in postgresql - Mailing list pgsql-general

From Rainer Pruy
Subject Re: Create loop in postgresql
Date
Msg-id 5044D339.3040500@acrys.com
Whole thread Raw
In response to Re: Create loop in postgresql  (salah jubeh <s_jubeh@yahoo.com>)
List pgsql-general
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:

Previous
From: salah jubeh
Date:
Subject: Re: Create loop in postgresql
Next
From: Robert Buckley
Date:
Subject: Re: Create loop in postgresql