pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Darryl M. Wolski <drwolski@sympatico.ca>
To: pgsql-sql@postgresql.org
Subject: nested inner join help
Date: Mon, 7 Jan 2002 00:37:56 -0500
Message-ID: <000801c1973d$75ea1980$ae00a8c0@arbour> (raw)

I  have a query which works perfectly fine in mysql but won't
work in the same database in postgres...

Can anyone take a look at this and tell me what the problem is?

I get a parser error at (.

SELECT orderlines.quantity, products.productname, products.productcost, customers.custlname,customers.custfname
FROM (((orders INNER JOIN orderlines ON orders.orderid = orderlines.lnkorderid)  INNER JOIN customers ON (customers.custid = orders.lnkcustid)) INNER JOIN products ON (products.productid = orderlines.lnkproductid))
WHERE (((orders.orderid)=2));

It seems as soon as I try to nest an INNER JOIN I get these parser errors. I have tried this query a few different ways, and still cant get it to work.

Thank you so much!!

Darryl Wolski

view thread (5+ messages)  latest in thread

Message-ID: <000801c1973d$75ea1980$ae00a8c0@arbour>
Permalink:  ../000801c1973d$75ea1980$ae00a8c0@arbour/
Also on:    postgresql.org/message-id/000801c1973d$75ea1980$ae00a8c0@arbour

 · 

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: drwolski@sympatico.ca
  Subject: Re: nested inner join help
  In-Reply-To: <000801c1973d$75ea1980$ae00a8c0@arbour>

* 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