Re: join table with empty fields and default - Mailing list pgsql-general

From Michael Fuhr
Subject Re: join table with empty fields and default
Date
Msg-id 20060723011740.GA87856@winnie.fuhr.org
Whole thread Raw
In response to Re: join table with empty fields and default  (quickcur@yahoo.com)
List pgsql-general
On Sat, Jul 22, 2006 at 01:38:38PM -0700, quickcur@yahoo.com wrote:
> Suppose I have another table UserInformation
>
> UserInfomation
> {
>     userid integer referenes user(id),
>      mothername text
> }
>
> I would like methername also appear in the final join. Suppose each
> user must have a mothername.
>
> Could you please whow me the sql again?

Same query as before but with an additional join for the new table.
See the documentation links in my previous response for information
about join types, syntax, and examples.

What have you tried, what results were you expecting, and what
results did you get?  If you're getting the wrong results then let's
investigate so we can understand why they're wrong.

--
Michael Fuhr

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: PGSQL 8.1.4 on Win2003 at istanbul :), could not access status of transaction xxxxx , could not open file "pg_subtrans/000A": Invalid argument
Next
From: "Kostas Maistrelis"
Date:
Subject: Table Inheritance and foreign key problem.