Re: [GENERAL] SELECT WHERE NOT, is not working

2005-01-05 Thread Steve Crawford
On Wednesday 05 January 2005 2:51 pm, [EMAIL PROTECTED] wrote: > 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

Re: [GENERAL] SELECT WHERE NOT, is not working

2005-01-05 Thread MargaretGillon
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 re

Re: [GENERAL] SELECT WHERE NOT, is not working

2005-01-05 Thread Ragnar Hafstað
On Wed, 2005-01-05 at 22:32 +, Ragnar Hafstað wrote: > select count(*) from resource where reengine is NULL 'X'; typo. I meant of course: select count(*) from resource where reengine is NULL; gnari ---(end of broadcast)--- TIP 5: Have you

Re: [GENERAL] SELECT WHERE NOT, is not working

2005-01-05 Thread Tom Lane
[EMAIL PROTECTED] writes: > I have a small table in which I have a Character(1) field called reengine. > The field either has an "X" or is empty. This field does not have NULL > values. There are 27 records in the table, 25 are marked with an 'X' in > reengine. > When I write > select count(*) fro

Re: [GENERAL] SELECT WHERE NOT, is not working

2005-01-05 Thread Ragnar Hafstað
On Wed, 2005-01-05 at 13:51 -0800, [EMAIL PROTECTED] wrote: > I have a small table in which I have a Character(1) field called reengine. > The field either has an "X" or is empty. This field does not have NULL > values. There are 27 records in the table, 25 are marked with an 'X' in > reengine. >

Re: [GENERAL] SELECT WHERE NOT, is not working

2005-01-05 Thread Alex Turner
Try: select count(*) from resource where reengine <> 'X'; Alex Turner NetEconomist On Wed, 5 Jan 2005 13:51:58 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have a small table in which I have a Character(1) field called reengine. > The field either has an "X" or is empty. This field

[GENERAL] SELECT WHERE NOT, is not working

2005-01-05 Thread MargaretGillon
I have a small table in which I have a Character(1) field called reengine. The field either has an "X" or is empty. This field does not have NULL values. There are 27 records in the table, 25 are marked with an 'X' in reengine. I am querying the table from pgadmin v1.1.0 for windows. When I write