Re: Aggregate Aggravation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Robin's PG-SQL List" <pg-sql(at)mail(dot)robin(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Aggregate Aggravation
Date: 2001-09-27 17:31:52
Message-ID: 2193.1001611912@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Robin's PG-SQL List" <pg-sql(at)mail(dot)robin(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2001-09-27 17:49:14 Re: LEFT OUTER JOIN problem
Previous Message Tom Lane 2001-09-27 16:32:53 Re: A bug in triggers PG 7.1.3 or misunderstand ?