Re: Left Outer Join Question

Поиск
Список
Период
Сортировка
От Edward Murray
Тема Re: Left Outer Join Question
Дата
Msg-id a5htb0$1n81$1@jupiter.hub.org
обсуждение исходный текст
Ответ на Re: Left Outer Join Question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
On Wed, 27 Feb 2002 16:59:23 +1100, Tom Lane wrote:

> "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

I think the problem is that the rows are not being returned by the query
at all not that any particular column is null. Do I need to perform
another outer join? I am not sure how to tackle this problem.


>             regards, tom lane
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org


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

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: Left Outer Join Question
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Left Outer Join Question