wired behaviour - Mailing list pgsql-sql

From Lutz Steinborn
Subject wired behaviour
Date
Msg-id 20081128145137.ac5b852b.l.steinborn@4c-ag.de
Whole thread Raw
Responses Re: wired behaviour
Re: wired behaviour
Re: wired behaviour
List pgsql-sql
Hello,

I have an problem understanding a simple query:

For example I have the following:
select count(*) from foo;
gives me 1000

select count(*) from foo where bar = 'Mr Spock';
gives me 5

select count(*) from foo where NOT bar = 'Mr Spock';
gives me 857

Why I'm not getting 955 for the last query ?


Any idea ?

Kindly regards


Lutz


pgsql-sql by date:

Previous
From: "John Dizaro"
Date:
Subject: Re: UPDATE and DELEte with a lot of register is to slow...
Next
From: "Paul Dam"
Date:
Subject: Re: wired behaviour