Re: Can i customize null-padding for outer joins? - Mailing list pgsql-sql

From Scott Marlowe
Subject Re: Can i customize null-padding for outer joins?
Date
Msg-id dcc563d10909302322o14dca6ddv42641491d6e23cab@mail.gmail.com
Whole thread Raw
In response to Can i customize null-padding for outer joins?  (Shruthi A <shruthi.iisc@gmail.com>)
List 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 by date:

Previous
From: Shruthi A
Date:
Subject: Can i customize null-padding for outer joins?
Next
From: Scott Marlowe
Date:
Subject: Re: Pg_Restore with --clean option