Re: [GENERAL] Checking for schedule conflicts

2005-03-14 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Benjamin Smith wrote: > Given the tables defined below, what's the easiest way to check for schedule > conflicts? Assuming you don't count more than once things with the same id, start, and finish: SELECT COUNT(DISTINCT (s1.event_id||s1.start||s1.

Re: [GENERAL] Checking for schedule conflicts

2005-03-14 Thread Andre Maasikas
Ragnar Hafstaư wrote: On Sat, 2005-03-12 at 00:13 -0800, Benjamin Smith wrote: Given the tables defined below, what's the easiest way to check for schedule conflicts? So far, the only way I've come up with is to create a huge, multi-dimensional array in PHP, with a data element for every minute

Re: [GENERAL] Checking for schedule conflicts

2005-03-12 Thread Ragnar Hafstaư
On Sat, 2005-03-12 at 00:13 -0800, Benjamin Smith wrote: > Given the tables defined below, what's the easiest way to check for schedule > conflicts? > > So far, the only way I've come up with is to create a huge, multi-dimensional > array in PHP, with a data element for every minute of all time

[GENERAL] Checking for schedule conflicts

2005-03-12 Thread Benjamin Smith
Given the tables defined below, what's the easiest way to check for schedule conflicts? So far, the only way I've come up with is to create a huge, multi-dimensional array in PHP, with a data element for every minute of all time taken up by all events, and then check for any of these minutes t