Che Vilnonis wrote: > > Promotion Start Promotion End > 1/1/2005 1/15/2005 > 1/16/2005 1/31/2005 > 2/1/2005 3/31/2005 > 5/1/2005 5/31/2005 > > What would be the easiest way write a query to determine if FORM.PStartDate > and FORM.PEndDate won't overlap an existing query?
The following query will return all overlapping promotions: SELECT * FROM table WHERE (#FORM.PStartDate#, #FORM.PEndDate#) OVERLAPS (promotionEnd, promotionStart) Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213849 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

