Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-sql by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group