From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robin's PG-SQL List <pg-sql@mail.robin.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Aggregate Aggravation
Date: Thu, 27 Sep 2001 13:31:52 -0400
Message-ID: <2193.1001611912@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.3.96.1010926152227.6660D-100000@mail.robin.net>
References: <Pine.LNX.3.96.1010926152227.6660D-100000@mail.robin.net>
"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
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: tgl@sss.pgh.pa.us, pg-sql@mail.robin.net
Subject: Re: Aggregate Aggravation
In-Reply-To: <2193.1001611912@sss.pgh.pa.us>
* 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