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

From ARP
Subject Re: how does NOT work?
Date
Msg-id 042801c1eba8$66464980$0100a8c0@arp.homelinux.org
Whole thread Raw
In response to how does NOT work?  (tony <tony@animaproductions.com>)
Responses Re: how does NOT work?
List pgsql-general
> I guess select count(*) from individu where type2 is null will return 5717 (18417-12619-81)

>Still don't understand the logic - I just want cells that don't start
>with "a" I don't care if they contain null values or not.

Your answer is :

select count(*) from individu where type2 is null or type2 not like 'a%'

otherwise you trash the null values as you said :-)

Arnaud


pgsql-general by date:

Previous
From: tony
Date:
Subject: Re: how does NOT work?
Next
From: "Ian Harding"
Date:
Subject: Re: how does NOT work?