Thane Sherrington wrote: > Is there a way to use a Select query to get just the month out of a date in > a SQL query? I have a database that has a date field in it (so 04-10-02) > and I want to select all the records from a specific month.
To get a different month, change the number: SELECT * FROM table WHERE EXTRACT(MONTH FROM your_date-field) = 10 Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm