pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: D Kavan <bitsandbytes88@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: outer joins
Date: Fri, 05 Aug 2005 16:31:41 -0400
Message-ID: <BAY102-F1548EC8F7F13114369AE2FD1C70@phx.gbl> (raw)
In-Reply-To: <0105A1BF505D304E9E5AF38B63E40E4E69D3D8@EXCHANGE.siglercompanies.com>


Hi,

Thanks for the reply.  That didn't help him, but he asked me to post this.

There are 66 project id's in the project table and 3 rows in the 
project_members table for global_id 2915, but it only returns 3.  I would 
think it should return 66 rows, with 63 of them having a null pm.project_id.

SELECT
       p.project_id, pm.project_id
       FROM project p
LEFT OUTER JOIN project_members pm ON p.project_id = pm.project_id
where (pm.project_id is null or pm.global_id = 2915)





view thread (11+ messages)  latest in thread

Message-ID: <BAY102-F1548EC8F7F13114369AE2FD1C70@phx.gbl>
Permalink:  ../BAY102-F1548EC8F7F13114369AE2FD1C70@phx.gbl/
Also on:    postgresql.org/message-id/BAY102-F1548EC8F7F13114369AE2FD1C70@phx.gbl

 · 

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-admin@postgresql.org
  Cc: bitsandbytes88@hotmail.com
  Subject: Re: outer joins
  In-Reply-To: <BAY102-F1548EC8F7F13114369AE2FD1C70@phx.gbl>
  References: <0105A1BF505D304E9E5AF38B63E40E4E69D3D8@EXCHANGE.siglercompanies.com> <BAY102-F1548EC8F7F13114369AE2FD1C70@phx.gbl>

* 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