From: Robin's PG-SQL List <pg-sql@mail.robin.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Aggregate Aggravation
Date: Thu, 27 Sep 2001 23:33:06 -0700 (MST)
Message-ID: <Pine.LNX.3.96.1010927233137.7995A-100000@mail.robin.net> (raw)
In-Reply-To: <2193.1001611912@sss.pgh.pa.us>
Indeed I do. I need to add another constraint on that query. It
never would have occurred to me had I not asked. Problem solved. Thank
you, thank you!
-Robin
On Thu, 27 Sep 2001, Tom Lane wrote:
> "Robin's PG-SQL List" <pg-sql@mail.robin.net> writes:
> > I have a query using the SUM() function that is not returning the
> > appropriate results.
>
> I'm guessing that you have two rows in bolcustomer matching
> bol_number = 88738, so that the 14 gets added in twice.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: pg-sql@mail.robin.net, tgl@sss.pgh.pa.us
Subject: Re: Aggregate Aggravation
In-Reply-To: <Pine.LNX.3.96.1010927233137.7995A-100000@mail.robin.net>
* 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