Jerry, Althought "overlaps" is a reserved word in sql, the operand is not implemented. I'm looking for an equivelant now.
-mk -----Original Message----- From: Jerry Johnson [mailto:[EMAIL PROTECTED] Sent: Friday, August 05, 2005 9:11 AM To: CF-Talk Subject: Re: What would be the easiest way to write this query? Does this work on SQL Server 2000? On 8/5/05, Jochem van Dieten <[EMAIL PROTECTED]> wrote: > The following query will return all overlapping promotions: > SELECT * > FROM table > WHERE (#FORM.PStartDate#, #FORM.PEndDate#) OVERLAPS > (promotionEnd, promotionStart) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213851 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

