Interesting failure when selecting aggregates

From: Michael Davis <michael(dot)davis(at)prevuenet(dot)com>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Interesting failure when selecting aggregates
Date: 1999-03-30 21:23:59
Message-ID: 93C04F1F5173D211A27900105AA8FCFC1452F9@lambic.prevuenet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

select sum(TotShippingHandling) from Invoice where 1 = 1 and
TotShippingHandling <> 0;
---

(1 row)

select sum(TotShippingHandling) from Invoice where TotShippingHandling <> 0;
sum
-------
6781.05
(1 row)

Red Hat 5.1, intel, PostgreSQL 6.5 (downloaded last night).

Thanks, Michael

Browse pgsql-hackers by date

  From Date Subject
Next Message Jackson, DeJuan 1999-03-31 00:02:21 [OT] Timezones and Daylight savings.
Previous Message The Hermit Hacker 1999-03-30 19:08:33 Re: [HACKERS] Should the following work...?