Re: nested inner join help

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Darryl M(dot) Wolski" <drwolski(at)sympatico(dot)ca>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: nested inner join help
Date: 2002-01-14 21:37:26
Message-ID: 19354.1011044246@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Darryl M. Wolski" <drwolski(at)sympatico(dot)ca> writes:
> 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, cus=
> tomers.custlname,customers.custfname
> FROM (((orders INNER JOIN orderlines ON orders.orderid =3D orderlines.lnkor=
> derid) INNER JOIN customers ON (customers.custid =3D orders.lnkcustid)) IN=
> NER JOIN products ON (products.productid =3D orderlines.lnkproductid))
> WHERE (((orders.orderid)=3D2));

Looks fine to me. Are you using an old Postgres version? We didn't
support JOIN keywords until 7.1.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jason Earl 2002-01-14 21:55:25 Re: CREATE TABLE glitch -fix request for 7.2
Previous Message Josh Berkus 2002-01-14 21:31:32 Re: Uisng Procedures via JDBC