From: Tom Lane <tgl@sss.pgh.pa.us>
To: anepon@verveinternet.com
Cc: Pgsql-Sql <pgsql-sql@postgresql.org>
Subject: Re: Help with a double left join
Date: Fri, 22 Jun 2001 11:15:08 -0400
Message-ID: <3975.993222908@sss.pgh.pa.us> (raw)
In-Reply-To: <JMEEKPBGBOBMKNANAGILGEKECCAA.anepon@verveinternet.com>
References: <JMEEKPBGBOBMKNANAGILGEKECCAA.anepon@verveinternet.com>
"Ari Nepon" <anepon@verveinternet.com> writes:
> Thanks Alex. But it was too good to be true. Or, more likely, I did
> something else wrong.
clients.ID => client.ID, likely.
regression=# create table track(project int, client int);
CREATE
regression=# create table project(project_id int);
CREATE
regression=# create table client(ID int);
CREATE
regression=# select * from track LEFT JOIN project ON track.project=project.pro
ject_id
regression-# LEFT JOIN client ON track.client=clients.ID;
ERROR: Relation 'clients' does not exist
regression=# select * from track LEFT JOIN project ON track.project=project.pro
ject_id
regression-# LEFT JOIN client ON track.client=client.ID;
project | client | project_id | id
---------+--------+------------+----
(0 rows)
regards, tom lane
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: tgl@sss.pgh.pa.us, anepon@verveinternet.com
Subject: Re: Help with a double left join
In-Reply-To: <3975.993222908@sss.pgh.pa.us>
* 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