Friday, December 09, 2005 8:12 PM
dbottjer
SQL Query By Year
Say you want to query a table returning all the records from a certain year. An easy way to do this is to use SQL’s Year Function as follows:
Select * From <Table> Where Year(<DateTimeField>) = 2006
Filed under: SQL