Re: Can i customize null-padding for outer joins?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Can i customize null-padding for outer joins?
Дата
Msg-id dcc563d10909302322o14dca6ddv42641491d6e23cab@mail.gmail.com
обсуждение исходный текст
Ответ на Can i customize null-padding for outer joins?  (Shruthi A <shruthi.iisc@gmail.com>)
Список pgsql-sql
On Thu, Oct 1, 2009 at 12:19 AM, Shruthi A <shruthi.iisc@gmail.com> wrote:
> Hello,
>
> I have a query where I full-outer-join 2 tables, and all the columns other
> than the join column are numerical columns. For my further calculations i
> need to pad the unmatched tuples with 0 (zero) instead of NULL so that I can
> perform meaningful mathematical calculations on them. Is this currently
> possible?

something like

select a.x, coalesce(b.y,0) from a left join b yada...

work?


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

Предыдущее
От: Shruthi A
Дата:
Сообщение: Can i customize null-padding for outer joins?
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Pg_Restore with --clean option