From: Oleg Lebedev <olebedev@waterford.org>
To: pgsql-sql@postgresql.org
Subject: Nested JOINs
Date: Thu, 16 Aug 2001 14:28:42 -0600
Message-ID: <3B7C2CFA.2B57616C@waterford.org> (raw)
Hello,
I am trying to execute an SQL query that contains nested joins, but I
get parser error for some reason.
Below is the query I am trying to execute and the error I am getting:
SELECT media
FROM (dtrowmedia a INNER JOIN dtrow b ON (a.dtrow = b.objectid)) c
INNER JOIN dtcol d ON (c.dtcol = d.objectid)
psql: ERROR: parser: parse error at or near "inner"
Note that the following query executes with no errors:
SELECT media
FROM dtrowmedia a INNER JOIN dtrow b ON (a.dtrow = b.objectid)
INNER JOIN dtcol d ON (b.dtcol = d.objectid)
What am I doing wrong?
Please help me get it to work.
Thanks
Oleg
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: olebedev@waterford.org
Subject: Re: Nested JOINs
In-Reply-To: <3B7C2CFA.2B57616C@waterford.org>
* 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