Re: how does NOT work?

From: "ARP" <arnaud(dot)mlist1(at)free(dot)fr>
To: "tony" <tony(at)animaproductions(dot)com>
Cc: "postgres list" <pgsql-general(at)postgresql(dot)org>
Subject: Re: how does NOT work?
Date: 2002-04-24 15:55:02
Message-ID: 042801c1eba8$66464980$0100a8c0@arp.homelinux.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ian Harding 2002-04-24 16:05:19 Re: how does NOT work?
Previous Message tony 2002-04-24 15:47:51 Re: how does NOT work?