Re: how does NOT work? - Mailing list pgsql-general

From Jean-Luc Lachance
Subject Re: how does NOT work?
Date
Msg-id 3CC6CEDC.99BFF31B@nsd.ca
Whole thread Raw
In response to how does NOT work?  (tony <tony@animaproductions.com>)
Responses Re: how does NOT work?
List pgsql-general
Tony,
 you forgot the NULL entries.

Add the result of:
select count(*) from individu where type2 is null

JLL

tony wrote:
>
> Stange one
>
> select count(*) from individu
>
> count
> 18417
>
> select count(*) from individu where type2 like 'a%'
>
> count
> 12619
>
> select count(*) from individu where type2 not like 'a%'
>
> count
> 81
>
> Clues?
>
> Cheers
>
> Tony Grant
>
> --
> RedHat Linux on Sony Vaio C1XD/S
> http://www.animaproductions.com/linux2.html
> Macromedia UltraDev with PostgreSQL
> http://www.animaproductions.com/ultra.html
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

pgsql-general by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: Re: how does NOT work?
Next
From: Benjamin Franks
Date:
Subject: group by with multiple selects having different where conditions