running aggregates

From: gdavy(at)tpg(dot)com(dot)au (Glenn)
To: pgsql-sql(at)postgresql(dot)org
Subject: running aggregates
Date: 2003-09-01 20:46:34
Message-ID: c865c69d.0309011246.5ef4cfb2@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

f1 sum_f1 avg_f1 pseudo_recno
10 10 10 1
20 30 15 2
30 60 20 3
40 100 25 4
50 150 30 5
60 210 35 6

I know I can do this by iterating with a plpgsql routine, but there must
be a means simply using SQL

Thanks in advance
Glenn
ps sorry if this isn't the appropriate use for this forum

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 2003-09-01 22:00:15 Re: Trigger functions w/o pgsql ?
Previous Message chester c young 2003-09-01 20:35:30 Re: disabling triggers