Search Postgresql Archives

Re: How to find earlest possible start times for given duration excluding reservations

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

 



On 28 October 2014 21:07, Andrus <kobruleht2@xxxxxx> wrote:
Hi!
 
>A correction to this.  As it stands, it will show times like the following:
 
Thank you.
I posted your solution as alternative to Erwin answer in
 

A further tweak; add the following to the WHERE clause:

AND EXTRACT(DOW FROM times.period) != 0

This will ensure Sundays are excluded.  I don't know if you want Saturdays excluded, but you can easily adjust it for that.
 
Thom

[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