Re: left outer join on multi tables

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>, quickcur(at)yahoo(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: left outer join on multi tables
Date: 2006-10-11 14:25:49
Message-ID: 20061011142549.65587.qmail@web31809.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Taking a second look. I see a few places I made a mistake. :-(

> CREATE VIEW your_view AS
^^^^^^^^^
> SELECT N.first_name,
> N.last_name,
> A.street,
> A.city,
> W.hour,
> ....
> FROM person P
> LEFT JOIN name N ON (P.namid = N.id)
^^^^
> LEFT JOIN address A ON (P.addressid = A.id)
^^^^^^^
> LEFT JOIN work W ON (P.workid = W.id)
^^^^
> ;

Hopefully this works a little better.

Regards,

Richard Broersma Jr.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-10-11 14:30:36 Re: STABLE functions
Previous Message Tom Lane 2006-10-11 14:19:47 Re: Schema - update search_path

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2006-10-11 14:29:56 Re: hstore isexists
Previous Message Tom Lane 2006-10-11 14:12:42 Re: query log corrupted-looking entries