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

2009-09-30 Thread A. Kretschmer
In response to Shruthi A : > 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 math

Re: [SQL] Pg_Restore with --clean option

2009-09-30 Thread Scott Marlowe
On Wed, Sep 30, 2009 at 11:14 PM, Jyoti Seth wrote: > > I want to restore data of a single table. Before restoring the data I > disabled all the triggers and constraints on that table. I used the restore > command with --clean option so that data gets deleted from that table and > then fresh data

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

2009-09-30 Thread Scott Marlowe
On Thu, Oct 1, 2009 at 12:19 AM, Shruthi A 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 > per

[SQL] Can i customize null-padding for outer joins?

2009-09-30 Thread Shruthi A
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 cur

Re: [SQL] Pg_Restore with --clean option

2009-09-30 Thread Peter Eisentraut
On Wed, 2009-09-30 at 22:14 -0700, Jyoti Seth wrote: > I want to restore data of a single table. Before restoring the data I > disabled all the triggers and constraints on that table. I used the restore > command with --clean option so that data gets deleted from that table and > then fresh data ge

[SQL] Pg_Restore with --clean option

2009-09-30 Thread Jyoti Seth
I want to restore data of a single table. Before restoring the data I disabled all the triggers and constraints on that table. I used the restore command with --clean option so that data gets deleted from that table and then fresh data get inserted. But this is throwing error: duplicate key value