Re: join table with empty fields and default

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: join table with empty fields and default
Дата
Msg-id 20060723011740.GA87856@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: join table with empty fields and default  (quickcur@yahoo.com)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: 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
Следующее
От: "Kostas Maistrelis"
Дата:
Сообщение: Table Inheritance and foreign key problem.