Re: how does NOT work?

From: tony <tony(at)animaproductions(dot)com>
To: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
Cc: postgres list <pgsql-general(at)postgresql(dot)org>
Subject: Re: how does NOT work?
Date: 2002-04-24 15:30:38
Message-ID: 1019662239.22848.39.camel@vaio
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 2002-04-24 at 17:22, Nigel J. Andrews wrote:

> > 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?
>
> NULLs?

the cells are either empty or contain a word that doesn't start with "a"
or a -

If I do it with two letters it works just fine so I guess I'll just put
another "a" in front

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message ARP 2002-04-24 15:31:07 Re: how does NOT work?
Previous Message Benjamin Franks 2002-04-24 15:30:28 group by with multiple selects having different where conditions