Re: how does NOT work?

From: tony <tony(at)animaproductions(dot)com>
To: ARP <arnaud(dot)mlist1(at)free(dot)fr>
Cc: postgres list <pgsql-general(at)postgresql(dot)org>
Subject: Re: how does NOT work?
Date: 2002-04-24 16:06:13
Message-ID: 1019664373.23158.56.camel@vaio
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joel Burton 2002-04-24 16:12:03 Re: how does NOT work?
Previous Message Ian Harding 2002-04-24 16:05:19 Re: how does NOT work?