pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeremy Buchmann <jeremy@wellsgaming.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Aggregates don't work on views?
Date: Fri, 25 May 2001 15:54:13 -0700
Message-ID: <B73430A4.2ED5%jeremy@wellsgaming.com> (raw)

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





view thread (2+ messages)  latest in thread

Message-ID: <B73430A4.2ED5%jeremy@wellsgaming.com>
Permalink:  ../B73430A4.2ED5%25jeremy@wellsgaming.com/
Also on:    postgresql.org/message-id/B73430A4.2ED5%jeremy@wellsgaming.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jeremy@wellsgaming.com
  Subject: Re: Aggregates don't work on views?
  In-Reply-To: <B73430A4.2ED5%jeremy@wellsgaming.com>
  References: <B73430A4.2ED5%jeremy@wellsgaming.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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