pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Clark Evans <clark.evans@manhattanproject.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@hub.org
Subject: Re: [SQL] Re: sum gives different answer
Date: Sun, 14 Mar 1999 18:10:11 +0000
Message-ID: <36EBFB83.F425A2FE@manhattanproject.com> (raw)
References: <29740.921434667@sss.pgh.pa.us>

Chairudin Sentosa <chairudin@prima.net.id> writes:
> select pin, sum(duration) from tablename where date(start_time)=
> (select date 'today') group by pin;
> pin|sum
> - ---+---
>    |
> (1 row)

Definately a bug.

Tom Lane wrote:
> SUM() should never have been applied at all

Yep.

Clark Evans



view thread (6+ messages)

Message-ID: <36EBFB83.F425A2FE@manhattanproject.com>
Permalink:  ../36EBFB83.F425A2FE@manhattanproject.com/
Also on:    postgresql.org/message-id/36EBFB83.F425A2FE@manhattanproject.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: clark.evans@manhattanproject.com, tgl@sss.pgh.pa.us, pgsql-sql@hub.org
  Subject: Re: [SQL] Re: sum gives different answer
  In-Reply-To: <36EBFB83.F425A2FE@manhattanproject.com>
  References: <29740.921434667@sss.pgh.pa.us> <36EBFB83.F425A2FE@manhattanproject.com>

* 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