Testing for Overlapping Events with SQL - DayPilot Forums http://forums.daypilot.org/Topic.aspx/69/testing_for_overlapping_events_with_sql Replies to question 'Testing for Overlapping Events with SQL'. Testing for Overlapping Events with SQL
Here's the SQL...

SELECT eventid from events WHERE(NOT((event_end < '" & newEventStartDate & "')
OR (event_start > '" & newEventEndDate & "')));"

Hope you find this helpful.

Dave]]>
http://forums.daypilot.org/Topic.aspx/69/testing_for_overlapping_events_with_sql Dave Abad http://forums.daypilot.org/Topic.aspx/69/testing_for_overlapping_events_with_sql Thu, 07 Jun 2007 00:36:42 +0200
New reply to 'Testing for Overlapping Events with SQL' http://forums.daypilot.org/Topic.aspx/69/testing_for_overlapping_events_with_sql#z7mknquvmvdl7e27rtblbonqyi Dan Letecky http://forums.daypilot.org/Topic.aspx/69/testing_for_overlapping_events_with_sql#z7mknquvmvdl7e27rtblbonqyi Thu, 07 Jun 2007 09:57:00 +0200 New reply to 'Testing for Overlapping Events with SQL' As far as I know, without the NOT that would be.

SELECT eventid from events WHERE((event_end >= '" & newEventStartDate & "')
AND (event_start <= '" & newEventEndDate & "'));"

This is exactly the same

]]>
http://forums.daypilot.org/Topic.aspx/69/testing_for_overlapping_events_with_sql#msojs3p2c5hxnpzliughqpwgha Tim Daldini http://forums.daypilot.org/Topic.aspx/69/testing_for_overlapping_events_with_sql#msojs3p2c5hxnpzliughqpwgha Thu, 12 Feb 2009 11:11:11 +0100
New reply to 'Testing for Overlapping Events with SQL' Thanks, Tim!

]]>
http://forums.daypilot.org/Topic.aspx/69/testing_for_overlapping_events_with_sql#s3dbhuckdbhm3emnv5u7lbr7x4 Dan Letecky http://forums.daypilot.org/Topic.aspx/69/testing_for_overlapping_events_with_sql#s3dbhuckdbhm3emnv5u7lbr7x4 Tue, 17 Feb 2009 10:11:34 +0100