Re: [HACKERS] Re: Informix and OUTER join syntax

From: Don Baccus <dhogaza(at)pacifier(dot)com>
To: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] Re: Informix and OUTER join syntax
Date: 2000-01-14 16:33:41
Message-ID: 3.0.1.32.20000114083341.010954c0@mail.pacifier.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 03:14 PM 1/14/00 +0000, Thomas Lockhart wrote:
>> And if I understand SQL92 correctly, if tab1, tab2, and tab3 only
>> share col1 in common, then you can further simplify:
>> SELECT *
>> FROM tab1 NATURAL RIGHT JOIN (tab2 NATURAL RIGHT JOIN tab3)
>> Is that right? ...and some
>> might argue this is less clear than explicitly listing the column(s)
>> to join on.
>
>But this is "natural", right? ;)

Cute! I have no experience trying to read and understand other
people's queries using SQL 92 outer joins so can't really say
whether the "natural" style is more clear than the more cumbersome
explicit notation.

I think both forms are quite readable, though.

- Don Baccus, Portland OR <dhogaza(at)pacifier(dot)com>
Nature photos, on-line guides, Pacific Northwest
Rare Bird Alert Service and other goodies at
http://donb.photo.net.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Don Baccus 2000-01-14 16:37:22 Re: [HACKERS] [hackers]development suggestion needed
Previous Message Don Baccus 2000-01-14 16:30:30 Re: [HACKERS] [hackers]development suggestion needed