Re: Left Outer Join Question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Left Outer Join Question
Дата
Msg-id 20158.1014789326@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Left Outer Join Question  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Ответы Re: Left Outer Join Question  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-sql
"Christopher Kings-Lynne" <chriskl@familyhealth.com.au> writes:
> What's probably happening is that count isn't counting NULLs?

As per spec.  If you want to count records independently of whether
any particular column is NULL or not, use count(*).  See the docs,
notably
http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/sql-expressions.html#SYNTAX-AGGREGATES
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Timestamp output
Следующее
От: "grep"
Дата:
Сообщение: Bad design or SQL statment quandary