Re: Aggregate Aggravation

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


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(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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Domingo Alvarez Duarte 2001-09-28 08:28:25 Re: A bug in triggers PG 7.1.3 or misunderstand ?
Previous Message Josh Berkus 2001-09-27 23:43:33 Re: simple question!