Re: exclusive OR possible within a where clause? - Mailing list pgsql-general

From John R Pierce
Subject Re: exclusive OR possible within a where clause?
Date
Msg-id 4E9C8C17.7050001@hogranch.com
Whole thread Raw
In response to Re: exclusive OR possible within a where clause?  (David Salisbury <salisbury@globe.gov>)
Responses Re: exclusive OR possible within a where clause?  (David Salisbury <salisbury@globe.gov>)
List pgsql-general
On 10/17/11 12:40 PM, David Salisbury wrote:
>  something
> -----------
>          1
>          2
>
> select * from test where ( something = 1.5 + .5 ) .XOR. ( something =
> 1.5 - .5 );


well,   something[1] = 1, so thats FALSE .XOR. TRUE, which is TRUE
and, something[2] = 2, so thats TRUE .XOR. FALSE, which is also TRUE

no?




--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast


pgsql-general by date:

Previous
From: David Salisbury
Date:
Subject: Re: exclusive OR possible within a where clause?
Next
From: David Salisbury
Date:
Subject: Re: exclusive OR possible within a where clause?