>
> I would like to query my database for a date range from Tuesday to
> Tuesday and return and retain the values


There is BETWEEN:

SELECT theDataIWant FROM theTable WHERE theDatefield BETWEEN
'2008-01-27' AND '2008-02-03'

Or DateDiff():

SELECT * FROM theTable
WHERE DateDiff(d, theDatefield, '2008-01-27') <= 0
AND  DateDiff(d, theDatefield, '2008-02-03') >= 0


The greater than and less than may need to be the other way round, I never
can do be sure without testing.

HTH

Dominic
-- 
Blog it up: http://fusion.dominicwatson.co.uk


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298028
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to