Re: how does NOT work?

Поиск
Список
Период
Сортировка
От ARP
Тема Re: how does NOT work?
Дата
Msg-id 042801c1eba8$66464980$0100a8c0@arp.homelinux.org
обсуждение исходный текст
Ответ на how does NOT work?  (tony <tony@animaproductions.com>)
Ответы Re: how does NOT work?  (tony <tony@animaproductions.com>)
Список 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


В списке pgsql-general по дате отправления:

Предыдущее
От: tony
Дата:
Сообщение: Re: how does NOT work?
Следующее
От: "Ian Harding"
Дата:
Сообщение: Re: how does NOT work?