Re: self outer join

From: Jeff Eckermann <jeff_eckermann(at)yahoo(dot)com>
To: David Link <dlink(at)soundscan(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: self outer join
Date: 2001-11-06 17:43:27
Message-ID: 20011106174327.74280.qmail@web20805.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Same way as you would alias any table in your FROM
clause, i.e.:
FROM table AS t1 LEFT OUTER JOIN table AS t2
ON t1.field = t2.field
The AS keyword is optional here, but I think preferred
for clarity.

--- David Link <dlink(at)soundscan(dot)com> wrote:

> How does one specify an alias for the table being
> joined. This is
> important if you are creating an outer join to the
> same table:

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Eckermann 2001-11-06 17:46:53 Re: postgres 7.1.1 on Freebsd 4.3?
Previous Message Stephan Szabo 2001-11-06 17:30:31 Re: Howto change column length