pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedAggregates don't work on views?
2+ messages / 2 participants
[nested] [flat]
* Aggregates don't work on views?
@ 2001-05-25 22:54 Jeremy Buchmann <jeremy@wellsgaming.com>
0 siblings, 1 reply; 2+ messages in thread
From: Jeremy Buchmann @ 2001-05-25 22:54 UTC (permalink / raw)
To: pgsql-admin
Hello all,
I am trying to select the sum of a column in a view, but it doesn't give me
any data. Check this out (h_2535c_1_this is the view):
rb=> select avg_rate from h_2535c_1_this;
avg_rate
--------
40.5
51
38
37
(4 rows)
rb=> select sum(avg_rate) from h_2535c_1_this;
sum
---
(4 rows)
What's happening here? I'm using pg 6.5.3 (yes, I know it's time to
upgrade, I will when it's feasible to take down our production server) on
Linux 2.2.19 (SuSE).
Thanks,
-- Jeremy
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Aggregates don't work on views?
@ 2001-05-25 23:19 Tom Lane <tgl@sss.pgh.pa.us>
parent: Jeremy Buchmann <jeremy@wellsgaming.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2001-05-25 23:19 UTC (permalink / raw)
To: Jeremy Buchmann <jeremy@wellsgaming.com>; +Cc: pgsql-admin
Jeremy Buchmann <jeremy@wellsgaming.com> writes:
> I am trying to select the sum of a column in a view, but it doesn't give me
> any data.
Try 7.1.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-05-25 23:19 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-05-25 22:54 Aggregates don't work on views? Jeremy Buchmann <jeremy@wellsgaming.com>
2001-05-25 23:19 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox