pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gregory Stark <stark@enterprisedb.com>
To: Loredana Curugiu <loredana.curugiu@gmail.com>
Cc: Richard Huxton <dev@archonet.com>
Cc: pgsql-novice@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: JOIN
Date: Tue, 05 Jun 2007 13:45:19 +0100
Message-ID: <87ps4ad0yo.fsf@oxford.xeocode.com> (raw)
In-Reply-To: <1c23c8e70706050518v19c56d21j873985125b930db@mail.gmail.com>
References: <1c23c8e70706050111i5ba672d6j78bd9afa4b786616@mail.gmail.com>
	<1c23c8e70706050426y12d567ban70ffdafb75808e0e@mail.gmail.com>
	<4665537A.2060601@archonet.com>
	<1c23c8e70706050518v19c56d21j873985125b930db@mail.gmail.com>

"Loredana Curugiu" <loredana.curugiu@gmail.com> writes:

> I am trying to say that sum column it is not calculated correctly.

It looks like your counts are high. That would imply that your join clauses
are matching more than one combination of rows. Ie, it's counting some rows
multiple times because there are multiple join matches.


-- 
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com




view thread (22+ messages)  latest in thread

Message-ID: <87ps4ad0yo.fsf@oxford.xeocode.com>
Permalink:  ../87ps4ad0yo.fsf@oxford.xeocode.com/
Also on:    postgresql.org/message-id/87ps4ad0yo.fsf@oxford.xeocode.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: stark@enterprisedb.com, loredana.curugiu@gmail.com, dev@archonet.com, pgsql-novice@postgresql.org
  Subject: Re: JOIN
  In-Reply-To: <87ps4ad0yo.fsf@oxford.xeocode.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