Re: join table with empty fields and default

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: quickcur(at)yahoo(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: join table with empty fields and default
Date: 2006-07-23 01:17:41
Message-ID: 20060723011740.GA87856@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Jul 22, 2006 at 01:38:38PM -0700, quickcur(at)yahoo(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kostas Maistrelis 2006-07-23 11:59:53 Table Inheritance and foreign key problem.
Previous Message Alvaro Herrera 2006-07-23 01:04:24 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