From: Gary Stainburn <gary.stainburn@ringways.co.uk>
To: pgsql-sql@postgresql.org
Subject: solved Re: view problem - too many rows out
Date: Wed, 12 May 2004 15:06:35 +0100
Message-ID: <200405121506.35979.gary.stainburn@ringways.co.uk> (raw)
In-Reply-To: <200405121102.31554.gary.stainburn@ringways.co.uk>
References: <200405121102.31554.gary.stainburn@ringways.co.uk>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: gary.stainburn@ringways.co.uk
Subject: Re: solved Re: view problem - too many rows out
In-Reply-To: <200405121506.35979.gary.stainburn@ringways.co.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox