Re: Fwd: Bad Join moment - how is this happening?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Fwd: Bad Join moment - how is this happening?
Дата
Msg-id 20030730123546.X39594-100000@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Fwd: Bad Join moment - how is this happening?  (Jamie Lawrence <postgres@jal.org>)
Список pgsql-sql
On Wed, 30 Jul 2003, Jamie Lawrence wrote:

> I have a view:
>
> create or replace view addenda as
> select
>         documents.id,
>         documents.oid,
>         documents.projects_id,
>         documents.doc_num,
>         documents.description,
>         documents.date,
>         documents.createdate,
>         documents.moddate,
>         documents.people_id,
>         documents.parent,
>         documents.document_type,
>         documents.state,
>         documents.machines_id,
>         documents.phases_id,
>
>         d_addenda.item_num,
>         d_addenda.drawing_reference
>
> from
>         d_addenda as a, documents as d
>                 where a.documents_id =  d.id;

I think you're being bitten by from clause
addition.  You're referencing documents in the
select list rather than d so it's probably
adding an unconstrained join to documents.



В списке pgsql-sql по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Fwd: Bad Join moment - how is this happening?
Следующее
От: Eric Clark
Дата:
Сообщение: Re: One to many query question