solved Re: view problem - too many rows out

Поиск
Список
Период
Сортировка
От Gary Stainburn
Тема solved Re: view problem - too many rows out
Дата
Msg-id 200405121506.35979.gary.stainburn@ringways.co.uk
обсуждение исходный текст
Ответ на view problem - too many rows out  (Gary Stainburn <gary.stainburn@ringways.co.uk>)
Список pgsql-sql
On Wednesday 12 May 2004 11:02 am, Gary Stainburn wrote:
> Hi folks.
>
[snip]
> create view order_summary as
>   select
>       c.cs_id, cs.count as qty, c.cs_make, c.cs_code, c.cs_type,
> cst.cst_desc, c.cs_colour,
>       o.or_id,
>       o.or_supp, o.or_date, o.or_received, o.or_no, orst.orst_desc as
> order_state,
>       co.co_id, co.co_name, co.co_person, co.co_tel,
>       co.co_mobile, co.co_fax, co.co_email, co.co_type,
>       c.cs_comments
>     from consumables c, orders o,
>         (select cost_cs_id, cost_or_id, count(cost_cs_id) from cons_stock
>            where cost_or_id is not null
>            group by cost_cs_id, cost_or_id
>         ) cs, contacts co,
>          cons_locations cl, cons_types cst, order_states orst

cons_locations shouldn't have been there

>     where cs.cost_cs_id = c.cs_id
>       and cs.cost_or_id = o.or_id
>       and c.cs_type = cst.cst_id
>       and o.or_supp = co.co_id
>       and o.or_state = orst.orst_id;
[snip]

-- 
Gary Stainburn
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     



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

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: working with schema
Следующее
От: Theodore Petrosky
Дата:
Сообщение: where is this problem (trigger)