Re: Select Rows With Only One of Two Values [RESOLVED] - Mailing list pgsql-general

From Rich Shepard
Subject Re: Select Rows With Only One of Two Values [RESOLVED]
Date
Msg-id alpine.LNX.2.00.1207200918470.21688@salmo.appl-ecosys.com
Whole thread Raw
In response to Re: Select Rows With Only One of Two Values  (Chris Angelico <rosuav@gmail.com>)
Responses Re: Select Rows With Only One of Two Values [RESOLVED]  (Chris Angelico <rosuav@gmail.com>)
List pgsql-general
On Sat, 21 Jul 2012, Chris Angelico wrote:

> Try this:
>
> SELECT DISTINCT param FROM table WHERE indicator=0
> EXCEPT
> SELECT DISTINCT param FROM table WHERE indicator=1

Chris,

   Thank you. I knew it was simple, and I've not before used the EXCEPT
condition.

Very much appreciate,

Rich


pgsql-general by date:

Previous
From: Chris Angelico
Date:
Subject: Re: Select Rows With Only One of Two Values
Next
From: Chris Angelico
Date:
Subject: Re: Select Rows With Only One of Two Values [RESOLVED]