public inbox for [email protected]  
help / color / mirror / Atom feed
From: Grzegorz Szpetkowski <[email protected]>
To: [email protected]
Subject: Re: 7.2. Table Expressions suggestion about NATURAL JOIN
Date: Wed, 18 May 2011 03:52:35 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

2011/5/18 Grzegorz Szpetkowski <[email protected]>:
> http://www.postgresql.org/docs/9.0/static/queries-table-expressions.html
> http://www.postgresql.org/docs/9.0/static/sql-select.html
>
> Respectively:
>
> "Finally, NATURAL is a shorthand form of USING: it forms a USING list
> consisting of all column names that appear in both input tables. As
> with USING, these columns appear only once in the output table."
>
> and
>
> "NATURAL is shorthand for a USING list that mentions all columns in
> the two tables that have the same names."
>
> To make that comprehensive you can add something like: "Note that if
> there is no any "shared" column between tables, then NATURAL JOIN acts
> like ON TRUE (that is, tables are cross-joined)", because it's not
> obvious.
>
> thanks & regards,
> greg szpetkowski
>

My mistake "NATURAL JOIN", better is to just write "NATURAL".

thanks & regards,
greg szpetkowski



view thread (4+ messages)  latest in thread

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: [email protected]
  Cc: [email protected]
  Subject: Re: 7.2. Table Expressions suggestion about NATURAL JOIN
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox