Subject RE: [firebird-support] Query using a range in where/having clause?
Author Steffen Heil
Hi

> ((ScheduleStart < UserStart) and (ScheduleEnd > UserEnd)) OR
(ScheduleStart BETWEEN UserStart and UserEnd) OR (ScheduleEnd BETWEEN
UserStart and UserEnd)

What about (ScheduleStart < UserEnd) and (ScheduleEnd > UserStart) ?

Regards,
Steffen