Search Postgresql Archives

Re: Tabulate data incrementally

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Omar Eljumaily <omar2@xxxxxxxxxxxx> writes:
> I want to tabulate time data on a weekly basis, but my data is entered 
> on a daily basis.

Something involving GROUP BY date_trunc('week', _date) might work for
you, if your definition of week boundaries matches date_trunc's.
If not, you could probably make a custom function that breaks at the
boundaries you want.

			regards, tom lane


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux