Re: Views

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Bob Pawley <rjpawley(at)shaw(dot)ca>
Cc: Postgre General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Views
Date: 2005-12-18 00:09:00
Message-ID: 20051218000900.GA4703@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Dec 17, 2005 at 03:39:02PM -0800, Bob Pawley wrote:
> The following gives me the information, but the rows are duplicated
> from one to three times. I would like to see one row for each of the
> values. I have attempted a number of variations but they all give me
> similar duplication.
>
> Is this duplication due to the action of postgre as to the information
> I've entered into the tables , or is it due to the structure of the
> command?

Have you tried using parentheses to group the OR expressions in the
WHERE clause?

where (devices.type_ = 'monitor' or devices.type_ = 'valve')
and devices.fluid_id = process.fluid_id;

--
Michael Fuhr

In response to

  • Views at 2005-12-17 23:39:02 from Bob Pawley

Responses

  • Re: Views at 2005-12-18 22:52:23 from Bob Pawley

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2005-12-18 01:38:07 Re: is this a bug or I am blind?
Previous Message Bob Pawley 2005-12-17 23:39:02 Views