Re: Two joins on same foreign key

From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
To: Anony Mous <a(dot)mous(at)shaw(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Two joins on same foreign key
Date: 2004-01-31 10:49:15
Message-ID: 1CBA249C-53DB-11D8-AB38-000A95C88220@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Jan 31, 2004, at 3:35 PM, Anony Mous wrote:

> Actually, given that there may not always be a backup_employee field
> (can be
> null) I think I'm forced to use an outer join to return all team leader
> records regardless if a matching backup_employee record exists.

yup. Actually, I hadn't seen the other responses when I first posted.
You've got some options, it looks like. :)
Michael Glaesemann
grzm myrealbox com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John Sidney-Woollett 2004-01-31 15:32:41 Unicode vs SQL_ASCII DBs
Previous Message Rajat Katyal 2004-01-31 09:37:07 Fw: [JDBC] Trigger function aborts the transaction on exception