Re: nested inner join help

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: nested inner join help
Дата
Msg-id web-601476@davinci.ethosmedia.com
обсуждение исходный текст
Ответ на Re: nested inner join help  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: On delete cascade!
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Long-running DELETE...WHERE...