Cool. Thanks. :)

Mark Mandel wrote:
> select * from
> foo
> where
> year(foo.date) = 2009
> 
> Assuming your db has a year() function. Most do.
> 
> Mark
> 
> 
> On Thu, Oct 16, 2008 at 4:38 PM, Phillip M. Vector
> <[EMAIL PROTECTED]> wrote:
>> How do I write a query to only pull 1 year (2009 lets say) from the DB
>> that has a date field?
>>
>> would I do something like
>>
>> where datestarting like "%09"
>>
>> ?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:313991
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