Re: nested inner join help - Mailing list pgsql-sql

From Josh Berkus
Subject Re: nested inner join help
Date
Msg-id web-601476@davinci.ethosmedia.com
Whole thread Raw
In response to Re: nested inner join help  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Tom,

> Huh?  Parenthesizing JOINs is perfectly valid, and I think it's good
> style too in complex cases.  See the nearby "SQL Joins" thread for
> an example of a query that's quite unreadable without 'em.

Aha.  I see.  Of course, the OUTER JOINs here sort of require parens.

So, Darryl, you do want to use parens some of time.  Just to make it harder foryou to decide.  However, I would assert
thatin your example query they arenot necessary and actually make the syntax more difficult.
 

-Josh Berkus

______AGLIO DATABASE SOLUTIONS___________________________                                      Josh Berkus Complete
informationtechnology      josh@agliodbs.com  and data management solutions       (415) 565-7293 for law firms, small
businesses       fax 621-2533   and non-profit organizations.      San Francisco
 


pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: On delete cascade!
Next
From: Tom Lane
Date:
Subject: Re: Long-running DELETE...WHERE...