Re: Outer Joins - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Outer Joins
Date
Msg-id 200101231728.MAA14979@candle.pha.pa.us
Whole thread Raw
In response to Re: Outer Joins  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Can someone explain why cname and date from table c gets printed in this
> > query?
>
> Say what?
>
> test=# CREATE TABLE a (id INTEGER, name TEXT, aname TEXT);
> CREATE
> test=# CREATE TABLE b (id INTEGER, name TEXT, bname TEXT);
> CREATE
> test=# CREATE TABLE c (id INTEGER, name TEXT, cname TEXT, date DATE DEFAULT
> test(# CURRENT_DATE);
> CREATE
> test=# SELECT * FROM a FULL OUTER JOIN b USING (id);
>  id | name | aname | name | bname
> ----+------+-------+------+-------
> (0 rows)

The text of the email showed this query returning columns from table c.
Seems it was just a mistake in the email.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Another plpgsql question..
Next
From: "Mitch Vincent"
Date:
Subject: Re: plpgsql - cont'd