Re: SELECT WHERE NOT, is not working - Mailing list pgsql-general

From MargaretGillon@chromalloy.com
Subject Re: SELECT WHERE NOT, is not working
Date
Msg-id OF0B7A3673.2F150A87-ON88256F80.007D2A9C-88256F80.007CEDD7@CHROMALLOY.COM
Whole thread Raw
In response to Re: SELECT WHERE NOT, is not working  (Ragnar Hafstað <gnari@simnet.is>)
Responses Re: SELECT WHERE NOT, is not working
List pgsql-general
Thanks, Ragnar,

You are right in what is happening. The code was supposed to be sending ''
but it is sending NULL instead. I see now -- in PostgreSQL to look for any
record without the 'X' I have to use a combined condition because a NULL is
not included in a != statement.

select count(*) from resource where reengine is NULL or NOT (reengine =
'X') ;

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
***
Margaret Gillon, IS Dept., Chromalloy Los Angeles, ext. 297


pgsql-general by date:

Previous
From: Ragnar Hafstað
Date:
Subject: Re: SELECT WHERE NOT, is not working
Next
From: Tom Lane
Date:
Subject: Re: SELECT WHERE NOT, is not working