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

From tony
Subject Re: how does NOT work?
Date
Msg-id 1019664373.23158.56.camel@vaio
Whole thread Raw
In response to Re: how does NOT work?  ("ARP" <arnaud.mlist1@free.fr>)
Responses Re: how does NOT work?  ("Joel Burton" <joel@joelburton.com>)
Re: how does NOT work?  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
List pgsql-general
On Wed, 2002-04-24 at 17:55, ARP wrote:
> > 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.

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

"or" works here but not in some of the more complex joins I am doing
elsewhere. I will be using "-" and "0" a lot more from now on!

Thanks again

Tony

--
RedHat Linux on Sony Vaio C1XD/S
http://www.animaproductions.com/linux2.html
Macromedia UltraDev with PostgreSQL
http://www.animaproductions.com/ultra.html


pgsql-general by date:

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