in reply to
Interesting scheduling application problem.
Brute force is typically the way to go for scheduling. I seriously doubt you can do what you want with SQL.
Comment on
Re: Interesting scheduling application problem.
In Section
Seekers of Perl Wisdom