| From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
|---|---|
| To: | Chris <dmagick(at)gmail(dot)com> |
| Cc: | sconeek(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: catch SELECT statement return |
| Date: | 2006-03-17 07:01:07 |
| Message-ID: | 20060317070107.GA15123@wolff.to |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Thu, Mar 16, 2006 at 10:31:54 +1100,
Chris <dmagick(at)gmail(dot)com> wrote:
> sconeek(at)gmail(dot)com wrote:
> >i am working on this postgresql statement. it picks up all non-null
> >values only. is there a way to pickup all hour values (if any hour
> >value not existing, still find them and assign their value to be 0).
> >coz my table does not contain all hour values, only ones which have a
> >non-zero value.
> >
> I don't think it's possible. It won't come up with a left outer join
> because you aren't comparing to anything unless you have a second table
> with all of the times you want to compare.
Left joining against the output of generate_series could be used to do this.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Etienne Labuschagne | 2006-03-17 07:29:40 | Slow trigger on identical DB but different machine |
| Previous Message | Oleg Bartunov | 2006-03-17 05:10:35 | Re: full text indexing |