Re: how does NOT work?

Поиск
Список
Период
Сортировка
Искать
От
ARP
Тема
Re: how does NOT work?
Дата
Msg-id
042801c1eba8$66464980$0100a8c0@arp.homelinux.org
Список
Дерево обсуждения
Re: how does NOT work? "Ian Harding" <ianh@tpchd.org>
> 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 по дате отправления
От: tony
Дата:
Сообщение: Re: how does NOT work?
От: Ian Harding
Дата:
Сообщение: Re: how does NOT work?
FAQ