Re: a row disapearing

Поиск
Список
Период
Сортировка
От Rafal Pietrak
Тема Re: a row disapearing
Дата
Msg-id 1148900168.14902.45.camel@model.home.waw.pl
обсуждение исходный текст
Ответ на Re: a row disapearing  (Nis Jorgensen <nis@superlativ.dk>)
Ответы UTF-8 context of BYTEA datatype??  (Rafal Pietrak <rafal@zorro.isa-geek.com>)
Список pgsql-general
On Mon, 2006-05-29 at 12:32 +0200, Nis Jorgensen wrote:
> Rafal Pietrak wrote:
> > But is there a way to achieve one row output with both the count() and
> > its selector, when the ocunt is ZERO?
> SELECT dummy.id, count(xxx.id) FROM (SELECT :id as id FROM dual) as
> dummy LEFT JOIN xxx using (id) GROUP BY id;
>
> You owe the Oracle a natural left join replacement.

Luckily I've already figured that out, after Richard hinted me on using
a JOIN.

Thenx!

--
-R

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

Предыдущее
От: Nis Jorgensen
Дата:
Сообщение: Re: a row disapearing
Следующее
От: Michael Ben-Nes
Дата:
Сообщение: Re: The server's LC_CTYPE locale