Re: wired behaviour - Mailing list pgsql-sql

From Paul Dam
Subject Re: wired behaviour
Date
Msg-id 28DD271C986F234A9B4573938292C1B31BD298@s0008.a-more.org
Whole thread Raw
In response to wired behaviour  (Lutz Steinborn <l.steinborn@4c-ag.de>)
Responses Re: wired behaviour
List pgsql-sql
NULL values?

Met vriendelijke groet,
Paul Dam
Informatieanalist


Amyyon
Bijsterhuizen 11.58
6546 AS Nijmegen
050 - 311 5686
www.amyyon.nl
-----Oorspronkelijk bericht-----
Van: pgsql-sql-owner@postgresql.org
[mailto:pgsql-sql-owner@postgresql.org] Namens Lutz Steinborn
Verzonden: vrijdag 28 november 2008 14:52
Aan: pgsql-sql@postgresql.org
Onderwerp: [SQL] wired behaviour

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

--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql


pgsql-sql by date:

Previous
From: Lutz Steinborn
Date:
Subject: wired behaviour
Next
From: ries van Twisk
Date:
Subject: Re: wired behaviour