Try this:

AND GETDATE() >= '#couponstartdate# 00:00:00' and GETDATE() <=
'#couponenddate# 23:59:59'

-----Original Message-----
From: Will Tomlinson [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 01, 2008 10:17 AM
To: cf-talk
Subject: SQL between dates problem

SQL server 2000. 

I have two columns - startdate and enddate, why would this not return a
record if the startdate and enddate are the same. ex. 12/01/2008 for both. 

AND GETDATE() >= couponstartdate and GETDATE() <= couponenddate

Is there a better way to write this? I need it to return a record. It also
seems to not pull the record unless the enddate is one day after the day I
want it to expire. 

Thanks,
Will





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316061
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to