wired behaviour

From: Lutz Steinborn <l(dot)steinborn(at)4c-ag(dot)de>
To: pgsql-sql(at)postgresql(dot)org
Subject: wired behaviour
Date: 2008-11-28 13:51:37
Message-ID: 20081128145137.ac5b852b.l.steinborn@4c-ag.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Paul Dam 2008-11-28 14:10:17 Re: wired behaviour
Previous Message John Dizaro 2008-11-28 10:37:27 Re: UPDATE and DELEte with a lot of register is to slow...